Skip to main content

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).

Release files for framezip 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for framezip 0.1.0
File Size Uploaded
framezip-0.1.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for framezip 0.1.0
File Interpreter ABI Platform
framezip-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / framezip-0.1.0.tar.gz

Download URL framezip-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8cc7145faf7b78a2e327ab896e5b99e1eac055a40894e57fcf0fa8dcb27eb814
BLAKE2b-256 checksum
How to use checksums
24a8e7ef5f2bee76347c9929d00e1df0cf96fb42ea65189b35b5293a5695c843
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / framezip-0.1.0-py3-none-any.whl

Download URL framezip-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e5dc95a5f8f4d70ca72728b33f596e6030cd0c79fab563fcb15cf03a7e7140c
BLAKE2b-256 checksum
How to use checksums
097343c386bc0f7ce705e17d8915c04f82d08768e48efe592d4eadfc55e25992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page