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
Library
Pandas extensions registered on pd.DataFrame — import pytae and the methods attach automatically.
- Plotting —
Plotter: method-chainable plots onpandas.plot(pip install pytae[plot]) - 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()
See docs/LIBRARY.md for examples of each.
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"
See docs/CLI.md for the full flag reference.
Development
pip install -e ".[dev,notebooks]"
pytest # unit tests
git config core.hooksPath .githooks # run notebooks/*.ipynb before each commit
python scripts/run_notebooks.py # or run the notebook check manually
Notebooks are intentionally not part of the pytest suite (they're slower and exercise plotting/IO end-to-end); the pre-commit hook is the enforcement point instead.
License
MIT — see LICENSE.
Release files for pytae 3.2.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 | |
|---|---|---|---|
| pytae-3.2.0.tar.gz | 2.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytae-3.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.6 MB
Release files / pytae-3.2.0.tar.gz
| Download URL | pytae-3.2.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13835a7a807cbf2303a3b6d99ba1c54cfa061d2aaaf9ce8301dad4191e0252dc
|
|
BLAKE2b-256 checksum How to use checksums |
dfb3468ebf1c28dd7d7bf2b0eb8a345d35fb3e9f3162a7534e9b4d3f1c7419e5
|
| 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.2.0-py3-none-any.whl
| Download URL | pytae-3.2.0-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1f73f0f12745c0e0d83e99e1a3e63ae5849934d439bc82c838829b1729b6935
|
|
BLAKE2b-256 checksum How to use checksums |
8ee0e6555e44518ec5ce1a3bc1b1646ed194fd91708c0fd2328c573514c64908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|