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.8.0.tar.gz
(111.9 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.8.0.tar.gz.
File metadata
- Download URL: pint_pandas-0.8.0.tar.gz
- Upload date:
- Size: 111.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b8b607c0cfeb615afed68e087cfde56b1bd8399a4b088d15d2a0d7692ea9bfc
|
|
| MD5 |
ba7e15e761c9de5dbce567762b8fe5f0
|
|
| BLAKE2b-256 |
0771e5cdbaab7381b5a92c6d612cbe2ac8ca757b4ac4799cc7a3de3d8b360b2a
|
File details
Details for the file pint_pandas-0.8.0-py3-none-any.whl.
File metadata
- Download URL: pint_pandas-0.8.0-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 |
40ee8a85f0923695fa7dcc6927caa3043627e1561c056e9f4499fb2e7478f779
|
|
| MD5 |
63de1a42f773bdee218d5549ef3cc598
|
|
| BLAKE2b-256 |
0aacc71db56079a5966ea365d29be0dafee6fd5ab9b8c7914b6507bc1a179134
|