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
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.7.2.tar.gz
(111.8 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.2.tar.gz.
File metadata
- Download URL: pint_pandas-0.7.2.tar.gz
- Upload date:
- Size: 111.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
876714f3be5a67c2a9b85dd3c33352dae70f8a52af353be4dffee3375f4ba883
|
|
| MD5 |
cb2ee45a2cee91e9bb429ca69ff0459e
|
|
| BLAKE2b-256 |
bc6e45cc8623640da4168ca7b97a3ed0adeb3ee2a113c1cc3fe19bbcc697d6c9
|
File details
Details for the file pint_pandas-0.7.2-py3-none-any.whl.
File metadata
- Download URL: pint_pandas-0.7.2-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34e5d46ed0b890cc79ba451a4da68d2509003773f8c25d2f0a5c4b178f6e2d2b
|
|
| MD5 |
a9d160fb5b101a950f828b523d75528d
|
|
| BLAKE2b-256 |
57d6b9278c174f114b54e393870ffa0c0fde2510f704412ae48d09d1cc5f7075
|