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.6.2.tar.gz
(57.8 kB
view details)
Built Distribution
File details
Details for the file pint_pandas-0.6.2.tar.gz
.
File metadata
- Download URL: pint_pandas-0.6.2.tar.gz
- Upload date:
- Size: 57.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec6bd1ab9c826d40fbd78ed05e1b014f7251319e0fe3f48312523accaf816b5e |
|
MD5 | 2cb1164d2d413e866357553573f174be |
|
BLAKE2b-256 | 9a30b98b147073713f43efce50cfc6adbafdf52137a1baec59bbbc02021afbb9 |
File details
Details for the file Pint_Pandas-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: Pint_Pandas-0.6.2-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd2a1f50814e1b213e147d7380d37f7c079d6b9b58b0b7af90aa3b14124a64b2 |
|
MD5 | 2b42900a363ff0d7cbf4ad5998343e1e |
|
BLAKE2b-256 | 95b02dcc0f58caf8d3bfc16df1214922fa826bbf7526145383872f257b903375 |