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.18.tar.gz (51.4 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.18-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pirrtools-0.2.18.tar.gz
  • Upload date:
  • Size: 51.4 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.18.tar.gz
Algorithm Hash digest
SHA256 3a4194ed45e46f941f5ce081c90ec070a2b0786fb8f4524cfc3fb63ff950392c
MD5 0266f053ae0585993b727e50e6bb4203
BLAKE2b-256 707b033a95c51cd3d7a27bca7cb0a2910d0408d3abaab2f8e8ac1ad3706b258d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pirrtools-0.2.18.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.18-py3-none-any.whl.

File metadata

  • Download URL: pirrtools-0.2.18-py3-none-any.whl
  • Upload date:
  • Size: 43.2 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 99dd5ba5729ad0c9970556d6b30d3bcfa76ede7ec7297944a3835ca3c7095911
MD5 4401e4352f3a013c05f7e7d313258145
BLAKE2b-256 62adb45dd9fb4fa439a22bc15c2f1121272c8b77cc70b7c8a1366e9d849b0a31

See more details on using hashes here.

Provenance

The following attestation bundles were made for pirrtools-0.2.18-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