.. image:: https://img.shields.io/pypi/v/pint-pandas.svg
:target: https://pypi.python.org/pypi/pint-pandas
:alt: Latest Version
.. image:: https://img.shields.io/pypi/l/pint-pandas.svg
:target: https://pypi.python.org/pypi/pint-pandas
:alt: License
.. image:: https://img.shields.io/pypi/pyversions/pint-pandas.svg
:target: https://pypi.python.org/pypi/pint-pandas
:alt: Python Versions
.. image:: https://github.com/hgrecco/pint-pandas/workflows/CI/badge.svg
:target: https://github.com/hgrecco/pint-pandas/actions?query=workflow%3ACI
:alt: CI
.. image:: https://github.com/hgrecco/pint-pandas/workflows/Lint/badge.svg
:target: https://github.com/hgrecco/pint-pandas/actions?query=workflow%3ALint
:alt: LINTER
.. image:: https://coveralls.io/repos/github/hgrecco/pint-pandas/badge.svg?branch=master
:target: https://coveralls.io/github/hgrecco/pint-pandas?branch=master
:alt: Coverage
Pint-Pandas
===========
Pandas support for `pint <https://pint.readthedocs.io/en/stable/>`_
.. code-block:: python
>>> import pandas as pd
>>> import pint_pandas
.. code-block:: python
>>> 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:
.. code-block:: bash
$ pip install pint-pandas
or utilizing conda, with the conda-forge channel:
.. code-block:: bash
$ conda install -c conda-forge pint-pandas
and then simply enjoy it!
Raw data
{
"_id": null,
"home_page": null,
"name": "Pint-Pandas",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "physical, quantities, unit, conversion, science, pandas, dataframe",
"author": null,
"author_email": "\"Hernan E. Grecco\" <hernan.grecco@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/9a/30/b98b147073713f43efce50cfc6adbafdf52137a1baec59bbbc02021afbb9/pint_pandas-0.6.2.tar.gz",
"platform": null,
"description": ".. image:: https://img.shields.io/pypi/v/pint-pandas.svg\n :target: https://pypi.python.org/pypi/pint-pandas\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/l/pint-pandas.svg\n :target: https://pypi.python.org/pypi/pint-pandas\n :alt: License\n\n.. image:: https://img.shields.io/pypi/pyversions/pint-pandas.svg\n :target: https://pypi.python.org/pypi/pint-pandas\n :alt: Python Versions\n\n.. image:: https://github.com/hgrecco/pint-pandas/workflows/CI/badge.svg\n :target: https://github.com/hgrecco/pint-pandas/actions?query=workflow%3ACI\n :alt: CI\n\n.. image:: https://github.com/hgrecco/pint-pandas/workflows/Lint/badge.svg\n :target: https://github.com/hgrecco/pint-pandas/actions?query=workflow%3ALint\n :alt: LINTER\n\n.. image:: https://coveralls.io/repos/github/hgrecco/pint-pandas/badge.svg?branch=master\n :target: https://coveralls.io/github/hgrecco/pint-pandas?branch=master\n :alt: Coverage\n\n\nPint-Pandas\n===========\n\nPandas support for `pint <https://pint.readthedocs.io/en/stable/>`_\n\n.. code-block:: python\n\n >>> import pandas as pd\n >>> import pint_pandas\n\n\n.. code-block:: python\n\n >>> df = pd.DataFrame({\n ... \"torque\": pd.Series([1, 2, 2, 3], dtype=\"pint[lbf ft]\"),\n ... \"angular_velocity\": pd.Series([1, 2, 2, 3], dtype=\"pint[rpm]\"),\n ... })\n >>> df['power'] = df['torque'] * df['angular_velocity']\n >>> df.dtypes\n torque pint[foot * force_pound]\n angular_velocity pint[revolutions_per_minute]\n power pint[foot * force_pound * revolutions_per_minute]\n dtype: object\n\nDocumentation\n--------------\nFull documentation is available at http://pint-pandas.readthedocs.io/\n\nQuick Installation\n------------------\n\nTo install Pint-Pandas, simply:\n\n.. code-block:: bash\n\n $ pip install pint-pandas\n\nor utilizing conda, with the conda-forge channel:\n\n.. code-block:: bash\n\n $ conda install -c conda-forge pint-pandas\n\nand then simply enjoy it!\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Extend Pandas Dataframe with Physical quantities module",
"version": "0.6.2",
"project_urls": {
"Homepage": "https://github.com/hgrecco/pint-pandas"
},
"split_keywords": [
"physical",
" quantities",
" unit",
" conversion",
" science",
" pandas",
" dataframe"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "95b02dcc0f58caf8d3bfc16df1214922fa826bbf7526145383872f257b903375",
"md5": "2b42900a363ff0d7cbf4ad5998343e1e",
"sha256": "dd2a1f50814e1b213e147d7380d37f7c079d6b9b58b0b7af90aa3b14124a64b2"
},
"downloads": -1,
"filename": "Pint_Pandas-0.6.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2b42900a363ff0d7cbf4ad5998343e1e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 27463,
"upload_time": "2024-07-29T21:59:16",
"upload_time_iso_8601": "2024-07-29T21:59:16.606210Z",
"url": "https://files.pythonhosted.org/packages/95/b0/2dcc0f58caf8d3bfc16df1214922fa826bbf7526145383872f257b903375/Pint_Pandas-0.6.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9a30b98b147073713f43efce50cfc6adbafdf52137a1baec59bbbc02021afbb9",
"md5": "2cb1164d2d413e866357553573f174be",
"sha256": "ec6bd1ab9c826d40fbd78ed05e1b014f7251319e0fe3f48312523accaf816b5e"
},
"downloads": -1,
"filename": "pint_pandas-0.6.2.tar.gz",
"has_sig": false,
"md5_digest": "2cb1164d2d413e866357553573f174be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 57841,
"upload_time": "2024-07-29T21:59:17",
"upload_time_iso_8601": "2024-07-29T21:59:17.644495Z",
"url": "https://files.pythonhosted.org/packages/9a/30/b98b147073713f43efce50cfc6adbafdf52137a1baec59bbbc02021afbb9/pint_pandas-0.6.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-29 21:59:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hgrecco",
"github_project": "pint-pandas",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "pint-pandas"
}