Skip to main content

adxpandas

PyPI Python

Execute Kusto Query Language (KQL) queries directly over one or more pandas DataFrames — no database required.

Installation

pip install adxpandas

For Jupyter notebook support (magic commands and chart rendering):

pip install adxpandas[notebook]

Quick Start

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)

Wrap: Quick Single-DataFrame Queries

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

Jupyter Magic

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

Render Charts

w = Wrap(df)
w.execute('self | summarize avg(score) by city | render barchart')

Features

  • Pure pandas execution — no SQLite or other database dependencies
  • Full KQL parser with support for common operators
  • Operators: where, project, project-away, extend, summarize, sort, top, take, distinct, count, parse, join, union, render
  • Wrap class for quick single-DataFrame queries with method chaining
  • Jupyter %kql / %%kql magic for interactive notebooks
  • Chart rendering: timechart, barchart, columnchart, piechart, linechart
  • Scalar functions: string, math, datetime operations
  • Aggregate functions: count, sum, avg, min, max, dcount, countif, sumif, avgif
  • let statements (scalar and tabular)
  • Union source form queries

Documentation

See the full documentation for comprehensive guides covering both adxlite and adxpandas.

Acknowledgments

Some functionality in adxpandas was inspired by and references KustoPandas. We thank the KustoPandas authors for their pioneering work on KQL-over-pandas execution.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for adxpandas 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adxpandas 0.2.3
File Size Uploaded Provenance Actions
adxpandas-0.2.3.tar.gz 38.3 kB With provenance Details for adxpandas-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adxpandas 0.2.3
File Interpreter ABI Platform Actions
adxpandas-0.2.3-py3-none-any.whl Python 3 none any Details for adxpandas-0.2.3-py3-none-any.whl

Total release size: 66.9 kB

Release files / adxpandas-0.2.3.tar.gz

Download URL adxpandas-0.2.3.tar.gz
Size 38.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a6b0fe20b8b4625f61d3878a65a346e80e9e3eb17d6f784b2e0ff3933541ddc4
BLAKE2b-256 checksum
How to use checksums
9f00208d9f806f30a2ca17c92f21ff607398e27cf1ef8010bf7d1ccebcabecfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / adxpandas-0.2.3-py3-none-any.whl

Download URL adxpandas-0.2.3-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa2ec259a025e6a37fb977da880a79b96da5547dd9d2b6ba6cfce1b9d09c63ef
BLAKE2b-256 checksum
How to use checksums
795d35c1002c87770fe1ea7a2a1f6f6f48dbcf5a0cb418a4e54277dc29560ebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Security for adxpandas 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for adxpandas-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page