Utilities to pack and unpack pandas DataFrames
Project description
framezip
A lightweight Python module for packing and unpacking pandas DataFrames by grouping rows into list-aggregated columns and exploding them back into individual rows.
Features
- Pack rows sharing common keys into a single row with list-aggregated columns.
- Unpack those list columns back into multiple rows.
- Flexible column referencing by name or integer index.
Installation
Make sure you have pandas installed:
pip install framezip
Use Cases
- Aggregate user sessions or grouped events into compact representations.
- Compress DataFrame rows for efficient storage or transfer.
- Switch easily between grouped (packed) and row-wise (unpacked) views.
- Prepare data for modeling or reporting workflows requiring different granularities.
Notes
- Accepts column indices or names for flexibility.
- Uses pandas groupby().agg(list) and explode() for performance.
- Requires pandas version 0.25 or later (for explode() support).
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
framezip-0.1.0.tar.gz
(3.7 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 framezip-0.1.0.tar.gz.
File metadata
- Download URL: framezip-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cc7145faf7b78a2e327ab896e5b99e1eac055a40894e57fcf0fa8dcb27eb814
|
|
| MD5 |
eb44acd14474853eb663d4116d70d531
|
|
| BLAKE2b-256 |
24a8e7ef5f2bee76347c9929d00e1df0cf96fb42ea65189b35b5293a5695c843
|
File details
Details for the file framezip-0.1.0-py3-none-any.whl.
File metadata
- Download URL: framezip-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e5dc95a5f8f4d70ca72728b33f596e6030cd0c79fab563fcb15cf03a7e7140c
|
|
| MD5 |
253f0f8e8d72d2d506e0b0ad8f002ccf
|
|
| BLAKE2b-256 |
097343c386bc0f7ce705e17d8915c04f82d08768e48efe592d4eadfc55e25992
|