KustoPandas is a wrapper around a Pandas DataFrame which allows you to use the syntax of the Kusto Query Language to transform the data frame. Under the hood the commands are converted to the corresponding Pandas method, so you get all the performance of Pandas, but with the nice syntax of Kusto.
For installation use pip
python -m pip install kusto_pandas
See the following jupyter notebooks for example usage
Here are some very basic usage examples. Please see the walkthrough above for more details.
import pandas as pd
from kusto_pandas import Wrap
dataframe = pd.read_csv("data.csv")
w = Wrap(dataframe)
w.where("Column1 > 0").summarize("count(), AvgOfCol1 = avg(Column1) by Column2")
In the above, multiple tabular operators are chained together, however if you prefer you can enter the full Kusto query
w.execute("""
w
| where Column1 > 0
| summarize count(), AvgOfCol1 = avg(Column1) by Column2
""")
If you are working in a Jupyter notebook, then you may find it more convenient to use an IPython magic
Metadata
Release files for kusto-pandas 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kusto_pandas-0.1.0.tar.gz | 32.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kusto_pandas-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.0 kB
Release files / kusto_pandas-0.1.0.tar.gz
| Download URL | kusto_pandas-0.1.0.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
148e05cbad39a57fb123c09701c27ba591cdfdbe4593c82ffb1219076abe6460
|
|
BLAKE2b-256 checksum How to use checksums |
c0fa82d5929acd3fdd708400090ce97fe9e064ae577aecce03973abf009720c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Release files / kusto_pandas-0.1.0-py3-none-any.whl
| Download URL | kusto_pandas-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e0efe0aec689267d5976a165e658acd75f181c385ea159dd28f26417ebe7d4a
|
|
BLAKE2b-256 checksum How to use checksums |
2c723c031c2dd8c4ba7a538f6ef1474368c1e0fa0947afd461eb101a2c52ea67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|