Skip to main content

Drill-down through your dataframe.

Project description

ofwhich

Easy drill-down into dataset for high-level summary.

In this README :point_down:

Usage

Installation

Make sure you are in the right environment and install the package

pip install ofwhich

Getting started

  1. Have a dataframe to run insights from. Example:
import pandas as pd
import numpy as np

num_rows = 100

df = pd.DataFrame({
    'Category': np.random.choice(['X', 'Y', 'Z'], size=num_rows),
    'Bool': np.random.choice([True, False], size=num_rows)
})

df.head()
  Category  Bool
0        Z  True
1        X  False
2        Y  False
...
  1. Use ofwhich:
from ofwhich import OfWhich
_ = OfWhich(df, 'Category1', 'Bool1')
  1. Enjoy the output :)
Total 100 records
    Of which X 37 records
        Of which True 19 records
        Of which False 18 records
    Of which Y 35 records
        Of which True 19 records
        Of which False 16 records
    Of which Z 28 records
        Of which True 16 records
        Of which False 12 records

Contributing

If you find a bug, please open an issue. Ideas for new features and improvement are welcome! Feel free to open an issue or PR.

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

ofwhich-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

ofwhich-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ofwhich-0.1.0.tar.gz.

File metadata

  • Download URL: ofwhich-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for ofwhich-0.1.0.tar.gz
Algorithm Hash digest
SHA256 093dc882120aa8c5ff2d88c379278da320d9847d6e95772fa3b6d6501ca88cb6
MD5 46c1ffffedfe6436ff462071a973f057
BLAKE2b-256 00cfa92740c2776414dfab77ba66a35bd39f983412aea455468036ffd7ad01bb

See more details on using hashes here.

File details

Details for the file ofwhich-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ofwhich-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for ofwhich-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4e0d0d65efa580087bdc4637f1a56309b379891ca870ad52b36208461969fe9
MD5 e8321e05a2472afe9572a18566edcf44
BLAKE2b-256 4a0f209c944f08b77bd1bcafeba032188635eeac2c2864c6b6008acbfc502611

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