Physical quantities module
Project description
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Pint-Pandas-0.2.tar.gz
(26.5 kB
view hashes)
Built Distribution
Close
Hashes for Pint_Pandas-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 214e4d9b79f540e7caef3a1cfd3d9ee31cba6b1559303a49f4de04a5756cc507 |
|
MD5 | a5fa61e0ce256254a4cc0977e17f479e |
|
BLAKE2-256 | 572a6e30e88f7a8bcbd19822aa89ea48584fe8186db84b62a37800a218120875 |