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
- 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
...
- Use ofwhich:
from ofwhich import OfWhich
_ = OfWhich(df, 'Category1', 'Bool1')
- 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
093dc882120aa8c5ff2d88c379278da320d9847d6e95772fa3b6d6501ca88cb6
|
|
| MD5 |
46c1ffffedfe6436ff462071a973f057
|
|
| BLAKE2b-256 |
00cfa92740c2776414dfab77ba66a35bd39f983412aea455468036ffd7ad01bb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4e0d0d65efa580087bdc4637f1a56309b379891ca870ad52b36208461969fe9
|
|
| MD5 |
e8321e05a2472afe9572a18566edcf44
|
|
| BLAKE2b-256 |
4a0f209c944f08b77bd1bcafeba032188635eeac2c2864c6b6008acbfc502611
|