Skip to content

MichaelTiemannOSC/pint-pandas

This branch is 35 commits behind hgrecco/pint-pandas:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

94975eb · Nov 29, 2023
Aug 13, 2023
Nov 29, 2023
May 25, 2023
Oct 21, 2023
May 25, 2023
Jun 27, 2023
May 28, 2023
Nov 29, 2023
Jun 24, 2020
Oct 20, 2023
Jun 20, 2020
Jun 24, 2020
Nov 29, 2023
Aug 16, 2021
May 25, 2023
Jun 21, 2023
Jun 27, 2023

Repository files navigation

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

Documentation

Full documentation is available at http://pint-pandas.readthedocs.io/

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!

About

Pandas support for pint

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 86.2%
  • Jupyter Notebook 13.8%