Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pirrtools-0.2.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pirrtools-0.2.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file pirrtools-0.2.3.tar.gz.

File metadata

  • Download URL: pirrtools-0.2.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for pirrtools-0.2.3.tar.gz
Algorithm Hash digest
SHA256 92e02034ef97ffc194a55ebc6e6a9211629273ec91fc15b0ca7459688d9cbbaa
MD5 9c27aad064a6e0cc3bf08aefdb7515dc
BLAKE2b-256 9038571684433af79e403e674c71c2bb539b710e807402da5237ebf8c0175841

See more details on using hashes here.

File details

Details for the file pirrtools-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: pirrtools-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for pirrtools-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0733b03150be5d15a377229fef09eeb1ae8adff073f5f075c93a5a19d938ff3
MD5 567d95485b4734eb45e58fa80e1d7224
BLAKE2b-256 7136259fb16488ee33bfb046b5fbd1f9d1d18fe647887aa6fb9265dedb219492

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page