Extend Pandas Dataframe with Physical quantities module
Project Links
Meta
Author: Hernan E. Grecco
Requires Python: >=3.9
Classifiers
Development Status
- 4 - Beta
Intended Audience
- Developers
- Science/Research
License
- OSI Approved :: BSD License
Operating System
- MacOS :: MacOS X
- Microsoft :: Windows
- POSIX
Programming Language
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
Topic
- Scientific/Engineering
- Software Development :: Libraries
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!
Jan 06, 2025
0.7.1
Jan 04, 2025
0.7
Jul 29, 2024
0.6.2
Jul 13, 2024
0.6.1
Jun 16, 2024
0.6
Sep 08, 2023
0.5
May 26, 2023
0.4
Nov 15, 2022
0.3
Mar 23, 2021
0.2
Jul 01, 2020
0.1