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.4.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.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pirrtools-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 8583a519eca7e9f65d54727d06185fbd15a5e392126d293ef49325bd2fcca528
MD5 65a1c7d7c75a0fcb0b8b488b0291c8d5
BLAKE2b-256 5c6d77db4a95b14f47a67d5df7b8a90d00bb2629f36e25f057f954591ecddb94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pirrtools-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 10fb1c34a4ffa7da2d9ed6c5051dd2d225dce13a5b759863a5bd21e8e1662c94
MD5 ea5bebcc25d3c99428a00fb35dca19d6
BLAKE2b-256 95eebfcfef64aae83c2cd21015503ea335a5184372ebc6bd26cc8b01131ebe8d

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