pytae
Pandas extensions for everyday data-science tasks (filtering, selection, reshaping, aggregation, plotting), plus a pytae CLI that exposes the same operations for inspecting and converting tabular files (.parquet, .csv, .txt, .dat, .sas7bdat) without writing any Python.
Install
pip install pytae
CLI
pytae data.parquet -head
pytae data.parquet -qry "species: 'Adelie'" -select "species,body_mass_g" -convert -o subset.csv
pytae data.parquet -sql "select species, avg(body_mass_g) from df group by species"
pytae -file "data1.parquet=df1; data2.parquet=df2" -merge "left=df1,right=df2,on=id"
See docs/CLI.md for the full flag reference, and docs/CLI_MULTI_FILE.md for -file/-merge/-concat.
Plotting
Plotter: method-chainable plots on top of pandas.plot() (pip install pytae[plot]).
from pytae.plotting import Plotter
Plotter().data(penguins).plot(
x="bill_length_mm", y="bill_depth_mm", kind="scatter", c="species", cmap="viridis"
).finalize()
See docs/PLOTTING.md for more examples with sample data.
Library
Pandas extensions registered on pd.DataFrame — import pytae and the methods attach automatically.
- Filtering —
qry(): dict-based filters (equality, lists,in/not in, comparisons, intervals) - Selection —
select(): columns by name, regex, dtype, or name pattern - Reshaping —
long()/wide(): melt numeric columns to rows, pivot back to columns - Aggregation —
agg_df(): auto-detects group columns and aggregates the rest - Utilities —
to_clip(),handle_missing(),cols(),group_x(),clean_columns(),replace_values()
See docs/LIBRARY.md for examples of each.
License
MIT — see LICENSE.
Release files for pytae 3.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytae-3.4.3.tar.gz | 3.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytae-3.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 MB
Release files / pytae-3.4.3.tar.gz
| Download URL | pytae-3.4.3.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e3c144ee35c4ce47aa9cae09257241fb999130784272c43d3ab17fc4857dba9
|
|
BLAKE2b-256 checksum How to use checksums |
eb9ed698387fc4a10a889072877d86a5ea62fd768cab5b2356ad4a0dc9982d4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pytae-3.4.3-py3-none-any.whl
| Download URL | pytae-3.4.3-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d8d3b95db4dda4f2da5c261f6f7e253bc255ebf4020292c7dee998dbf1c87bc
|
|
BLAKE2b-256 checksum How to use checksums |
7bddc4d83d184922527e5e9bdbb93d90fbc2ccf265f8f140b59c063a6b26302e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|