Skip to main content

A package to enhance common day to day tasks in the life of a data scientist

Project description

pytae

pytae is a lightweight Python package that makes everyday data science tasks faster and more readable — think SAS-style chaining on top of pandas.

Installation

pip install pytae

Requires Python ≥ 3.7, pandas ≥ 1.0.0

Features

Six feature sets, each with a companion reference notebook:

1) Plotting — Plotter

Lightweight plotting built on top of pandas.plot, fully compatible with matplotlib and ability to method chain plots. plotter.ipynb

2) Filtering — qry()

Dict based filtering making it more versatile. qry.ipynb

3) Selection — select()

R like select but on steroid. select.ipynb

4) Reshaping — long(), wide()

long() melts all numeric columns to rows. wide() pivots a column's values into headers. shape.ipynb

5) Aggregation — agg_df()

Auto-detects group columns (non-numeric) and aggregates the rest. Supports str, list, and dict aggfunc. n is a special token for group count. agg_df.ipynb

6) Utilities — clip(), handle_missing(), cols(), group_x()

  • cols() — sorted column list
  • handle_missing() — fill NaN with a visible marker before aggregating
  • group_x() — broadcast a group aggregate back to every row (like transform)
  • clip() — copy DataFrame to clipboard for pasting into Excel / Sheets

other_utilities.ipynb

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytae-2.6.5.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytae-2.6.5-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file pytae-2.6.5.tar.gz.

File metadata

  • Download URL: pytae-2.6.5.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytae-2.6.5.tar.gz
Algorithm Hash digest
SHA256 2d86a54d548e29cf1ed3a4597c6e5682044492c6d2d641f53bbf951248a0ae6e
MD5 ad37f93462438597b8a870b5e437604a
BLAKE2b-256 f950822d03a4c491bf20b2984153d1ba62993fff79232fcea4260723cc45a38b

See more details on using hashes here.

File details

Details for the file pytae-2.6.5-py3-none-any.whl.

File metadata

  • Download URL: pytae-2.6.5-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytae-2.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0d88019d83a978f560721dc2df542f985f30a2a8caaa86b27fb8372524e58d
MD5 b9daf3dbc9660ac1e227d30ee884ba78
BLAKE2b-256 0481ff2a024d72ef7dcc7f8032f0426ebfbaf3f8e6f7691c075032b0dda4995b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page