Skip to main content
Latest Version License Python Versions CI LINTER Coverage

Pint-Pandas

Pandas support for pint

>>> import pandas as pd
>>> import pint_pandas
>>> df = pd.DataFrame({
...     "torque": pd.Series([1, 2, 2, 3], dtype="pint[lbf ft]"),
...     "angular_velocity": pd.Series([1, 2, 2, 3], dtype="pint[rpm]"),
... })
>>> df['power'] = df['torque'] * df['angular_velocity']
>>> df.dtypes
torque                                       pint[foot * force_pound]
angular_velocity                         pint[revolutions_per_minute]
power               pint[foot * force_pound * revolutions_per_minute]
dtype: object

More examples are shown in the example notebook https://github.com/hgrecco/pint-pandas/blob/master/notebooks/pint-pandas.ipynb

Quick Installation

To install Pint-Pandas, simply:

$ pip install pint-pandas

or utilizing conda, with the conda-forge channel:

$ conda install -c conda-forge pint-pandas

and then simply enjoy it!

Metadata

Release files for Pint-Pandas 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Pint-Pandas 0.5
File Size Uploaded Provenance Actions
Pint-Pandas-0.5.tar.gz 55.7 kB Without provenance Details for Pint-Pandas-0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Pint-Pandas 0.5
File Interpreter ABI Platform Actions
Pint_Pandas-0.5-py3-none-any.whl Python 3 none any Details for Pint_Pandas-0.5-py3-none-any.whl

Total release size: 81.3 kB

Release files / Pint-Pandas-0.5.tar.gz

Download URL Pint-Pandas-0.5.tar.gz
Size 55.7 kB
Tags Source
SHA-256 checksum
How to use checksums
48ec96d457f802a347763dee1d3e1a273f11f90e4e595df17fd44613dd14a61c
BLAKE2b-256 checksum
How to use checksums
05da01b1e4eea32280194eb58f73725451afe067e7e5d04d1f901cafaad8baa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / Pint_Pandas-0.5-py3-none-any.whl

Download URL Pint_Pandas-0.5-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a33e8b43052a867b7b00a8c2c1fa3a7cc9af0eb0c0c17734a62a66eae5bbb1dd
BLAKE2b-256 checksum
How to use checksums
69b0c5b7232d7ae541549bf80320c34ebc6b8a7f059417515f8703c2bfc7a75a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for Pint-Pandas 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page