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.15.tar.gz (37.9 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.15-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pirrtools-0.2.15.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pirrtools-0.2.15.tar.gz
Algorithm Hash digest
SHA256 6057b93b3c2e4bdb0f5ed50568181a8f99fdab35ccc5456073ecdf0925e7c5a5
MD5 ee140dec3b6a24f7ba8cc1a518d99215
BLAKE2b-256 b1547ae01ead93d8adac4eb944ef776f9e1a665f488f3ad5fd49ba45c4d7a254

See more details on using hashes here.

Provenance

The following attestation bundles were made for pirrtools-0.2.15.tar.gz:

Publisher: publish-to-test-pypi.yml on pirsquared/pirrtools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pirrtools-0.2.15-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pirrtools-0.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 9d41050bd80ae814aad01be0b30ae809d0ae6c951ade430d71faadeab1eee0fb
MD5 5982d87ae92bc5e546c764b364513b49
BLAKE2b-256 e403d8df623548ae8859fa9f65c7612ba7641d12fa86b39cfaec6503cee21cb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pirrtools-0.2.15-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on pirsquared/pirrtools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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