# 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).
Raw data
{
"_id": null,
"home_page": "https://github.com/Lairizzle/framezip",
"name": "framezip",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Keith Henderson",
"author_email": "keith.donaldh@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/24/a8/e7ef5f2bee76347c9929d00e1df0cf96fb42ea65189b35b5293a5695c843/framezip-0.1.0.tar.gz",
"platform": null,
"description": "# framezip\n\nA lightweight Python module for **packing** and **unpacking** pandas DataFrames by grouping rows into list-aggregated columns and exploding them back into individual rows.\n\n---\n\n## Features\n\n- **Pack** rows sharing common keys into a single row with list-aggregated columns.\n- **Unpack** those list columns back into multiple rows.\n- Flexible column referencing by name or integer index.\n\n---\n\n## Installation\n\nMake sure you have pandas installed:\n\n```\npip install framezip\n```\n\n## Use Cases\n\n* Aggregate user sessions or grouped events into compact representations.\n* Compress DataFrame rows for efficient storage or transfer.\n* Switch easily between grouped (packed) and row-wise (unpacked) views.\n* Prepare data for modeling or reporting workflows requiring different granularities.\n\n## Notes\n\n* Accepts column indices or names for flexibility.\n* Uses pandas groupby().agg(list) and explode() for performance.\n* Requires pandas version 0.25 or later (for explode() support).\n",
"bugtrack_url": null,
"license": null,
"summary": "Utilities to pack and unpack pandas DataFrames",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/Lairizzle/framezip"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "097343c386bc0f7ce705e17d8915c04f82d08768e48efe592d4eadfc55e25992",
"md5": "253f0f8e8d72d2d506e0b0ad8f002ccf",
"sha256": "3e5dc95a5f8f4d70ca72728b33f596e6030cd0c79fab563fcb15cf03a7e7140c"
},
"downloads": -1,
"filename": "framezip-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "253f0f8e8d72d2d506e0b0ad8f002ccf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 3856,
"upload_time": "2025-07-10T14:28:53",
"upload_time_iso_8601": "2025-07-10T14:28:53.522712Z",
"url": "https://files.pythonhosted.org/packages/09/73/43c386bc0f7ce705e17d8915c04f82d08768e48efe592d4eadfc55e25992/framezip-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "24a8e7ef5f2bee76347c9929d00e1df0cf96fb42ea65189b35b5293a5695c843",
"md5": "eb44acd14474853eb663d4116d70d531",
"sha256": "8cc7145faf7b78a2e327ab896e5b99e1eac055a40894e57fcf0fa8dcb27eb814"
},
"downloads": -1,
"filename": "framezip-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "eb44acd14474853eb663d4116d70d531",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3684,
"upload_time": "2025-07-10T14:28:54",
"upload_time_iso_8601": "2025-07-10T14:28:54.383146Z",
"url": "https://files.pythonhosted.org/packages/24/a8/e7ef5f2bee76347c9929d00e1df0cf96fb42ea65189b35b5293a5695c843/framezip-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-10 14:28:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Lairizzle",
"github_project": "framezip",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "framezip"
}