Skip to main content

Physical quantities module

Project description

Latest Version Documentation License Python Versions CI Coverage Docs

Pint-Pandas

Pandas support for pint

>>> import pandas as pd
>>> import pint
>>> 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

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!

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Pint-Pandas, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size Pint_Pandas-0.1-py2.py3-none-any.whl (17.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size Pint-Pandas-0.1.tar.gz (23.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page