Collection of tools I use in my projects
Project description
pirrtools
I find them useful
Description
pirrtools is a set of bespoke tools I wanted preserved in a library. It provides various utilities, with a key feature being a pandas accessor that enables caching of usually non-conforming datasets.
Features
- Pandas Accessor: Easily cache and load pandas DataFrames and Series, even those with non-conforming datasets.
Requirements
- Python 3.6 or greater
- pandas
- feather-format
Installation
Install pirrtools using pip:
pip install pirrtools
Usage
import pirrtools as pirr
import pandas as pd
# Create a DataFrame
df = pd.DataFrame(1, range(10), ['a', 'b', 'c']).rename_axis('N')
# Cache the DataFrame
df.pirr.to_cache('name_of_cache_path')
# Load the cached DataFrame
loaded_df = pirr.load_cache('name_of_cache_path')
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Authors
- Sean Smith
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
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 pirrtools-0.2.10.tar.gz.
File metadata
- Download URL: pirrtools-0.2.10.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b0c5db000f6a22bc381350df24489c64a552c4581aeef5cffb5421db4fdcbcb
|
|
| MD5 |
1821083333afefa4a29945dd09ff2b40
|
|
| BLAKE2b-256 |
a13343c4904599178060ae21db1e660acf6cff61858dd0692b597a6af43df69d
|
File details
Details for the file pirrtools-0.2.10-py3-none-any.whl.
File metadata
- Download URL: pirrtools-0.2.10-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d11a5f95892b22a245f9eb05695b83687b8973cde610c0937f58aabe8d55bab0
|
|
| MD5 |
82e21f68c5b3522f2cbf9bda9928168c
|
|
| BLAKE2b-256 |
8a74016edf141030894215050213b0683eedff9d153623cabd5216c386b010b0
|