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.6.tar.gz (13.0 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.6-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pirrtools-0.2.6.tar.gz
Algorithm Hash digest
SHA256 ecf28b8b64a7fca1fe74e1b660bab80f7c3faad9815f11d99468c40e60ad5f44
MD5 a469229b40ba50fdc0be44c6c9779a00
BLAKE2b-256 baab4133f1127b05981b96d64ed2518a67b33289ee45aca1a098cf56f74528d2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pirrtools-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9af68c80d5b6ef67b8260c5f92b52fca2040f5f0959fb23ab5c53583cd544187
MD5 fb2e2d5f6bd337eb7177dd5395ab84ff
BLAKE2b-256 129ce6b72a84771ab72d7e5df07b736d3214bb1a0f8bb6001fb858810de7eb75

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