Extend Pandas Dataframe with Physical quantities module
Project description
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!
Project details
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.7.1.tar.gz
(60.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pint_pandas-0.7.1.tar.gz.
File metadata
- Download URL: pint_pandas-0.7.1.tar.gz
- Upload date:
- Size: 60.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1106215a682593f535a89696688fec88a6fac3b32ffa9fe94c307e252bcb588
|
|
| MD5 |
d8839e89601bf96b04b8ef96330d4698
|
|
| BLAKE2b-256 |
3ed41623f45236859c88d196c5f7307b675f59e17a7a7d7a70114dba4a422af2
|
File details
Details for the file Pint_Pandas-0.7.1-py3-none-any.whl.
File metadata
- Download URL: Pint_Pandas-0.7.1-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
785312752eba35cbc55f4fa788c9f3d315839157d94254c5c79b91c5690ba11e
|
|
| MD5 |
76b9a2ad7ebbc61f1a97fb154e9edcae
|
|
| BLAKE2b-256 |
97195af93cae70c2e42f3ac568906f8f3909174450bdbf4d70ec420e1daef816
|