Observed since 20 Oct, 20:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
adxpandas
Execute Kusto Query Language (KQL) queries over pandas DataFrames
Execute Kusto Query Language (KQL) queries directly over one or more pandas DataFrames — no database required.
pip install adxpandas
For Jupyter notebook support (magic commands and chart rendering):
pip install adxpandas[notebook]
import pandas as pd
from adxpandas import AdxPandasClient
df = pd.DataFrame({
"name": ["Ada", "Alan", "Grace"],
"city": ["London", "London", "Arlington"],
"score": [10, 20, 30],
})
client = AdxPandasClient({"Users": df})
result = client.query('Users | where city == "London" | project name, score')
print(result)
from adxpandas import Wrap
w = Wrap(df)
result = w.execute('self | where city == "London" | project name, score')
print(result.df)
# Method chaining
w.where('city == "London"').project("name", "score").take(5).df
import adxpandas.magic # registers %kql magic
# Line magic
%kql df | where city == "London" | take 5
# Cell magic
%%kql
df
| where score > 10
| summarize count() by city
w = Wrap(df)
w.execute('self | summarize avg(score) by city | render barchart')
%kql / %%kql magic for interactive notebooksSee the full documentation for comprehensive guides covering both adxlite and adxpandas.
Some functionality in adxpandas was inspired by and references KustoPandas. We thank the KustoPandas authors for their pioneering work on KQL-over-pandas execution.
This project is licensed under the MIT License. See the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
pandasEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pandas>=1.5.0 | runtime |
pytest-covEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pytest-cov>=4.0; extra == "dev" | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pytest>=7.0; extra == "dev" | runtime |
ipythonEnvironment{
"extras": "",
"marker": "extra == \"notebook\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | ipython>=7.0; extra == "notebook" | runtime |
matplotlibEnvironment{
"extras": "",
"marker": "extra == \"notebook\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | matplotlib>=3.5.0; extra == "notebook" | runtime |
bdist_wheel · 27.92 KB · Python py3
sdist · 37.4 KB · Python source
Observed since 20 Oct, 20:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:88ce5fca7ef9d27367cc3224e72803575bfff61cdb70b557dc0f5520db569e10