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.3

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.3
File Size Uploaded
Pint-Pandas-0.3.tar.gz 82.5 kB Details

Built distribution (wheel)

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

Total release size: 105.9 kB

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

Download URL Pint-Pandas-0.3.tar.gz
Size 82.5 kB
Tags Source
SHA-256 checksum
How to use checksums
154c05ebe3a295abe8c177a90317bae887d37ea5b88813a38e10e1d64fd1589d
BLAKE2b-256 checksum
How to use checksums
a0bf6ffec2bc78bd8f8d105a879efd2a3a92faf5177d74abb761d62c8e13816d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release files / Pint_Pandas-0.3-py2.py3-none-any.whl

Download URL Pint_Pandas-0.3-py2.py3-none-any.whl
Size 23.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5b2062c883b6d203c735e182ac91d7cd32a7a6776074841659b08e1bba26eee3
BLAKE2b-256 checksum
How to use checksums
c2a3473144c887fdec25fb946f41dde1f688cb5446691238e963d44e3e460143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release history Release notifications | RSS feed

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

This release

0.3 This release

2 release files

0.2

2 release files

0.1

2 release files

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