Pint-Pandas


NamePint-Pandas JSON
Version 0.5 PyPI version JSON
download
home_page
SummaryExtend Pandas Dataframe with Physical quantities module
upload_time2023-09-08 02:56:41
maintainer
docs_urlNone
author
requires_python>=3.9
licenseBSD
keywords physical quantities unit conversion science pandas dataframe
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            .. 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

More examples are shown in the example notebook https://github.com/hgrecco/pint-pandas/blob/master/notebooks/pint-pandas.ipynb


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": "",
    "name": "Pint-Pandas",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "physical,quantities,unit,conversion,science,pandas,dataframe",
    "author": "",
    "author_email": "\"Hernan E. Grecco\" <hernan.grecco@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/05/da/01b1e4eea32280194eb58f73725451afe067e7e5d04d1f901cafaad8baa2/Pint-Pandas-0.5.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\nMore examples are shown in the example notebook https://github.com/hgrecco/pint-pandas/blob/master/notebooks/pint-pandas.ipynb\n\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.5",
    "project_urls": {
        "Homepage": "https://github.com/hgrecco/pint-pandas"
    },
    "split_keywords": [
        "physical",
        "quantities",
        "unit",
        "conversion",
        "science",
        "pandas",
        "dataframe"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "69b0c5b7232d7ae541549bf80320c34ebc6b8a7f059417515f8703c2bfc7a75a",
                "md5": "7fbd4978f2595c99c774fa8234aa10b7",
                "sha256": "a33e8b43052a867b7b00a8c2c1fa3a7cc9af0eb0c0c17734a62a66eae5bbb1dd"
            },
            "downloads": -1,
            "filename": "Pint_Pandas-0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7fbd4978f2595c99c774fa8234aa10b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 25601,
            "upload_time": "2023-09-08T02:56:39",
            "upload_time_iso_8601": "2023-09-08T02:56:39.782092Z",
            "url": "https://files.pythonhosted.org/packages/69/b0/c5b7232d7ae541549bf80320c34ebc6b8a7f059417515f8703c2bfc7a75a/Pint_Pandas-0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "05da01b1e4eea32280194eb58f73725451afe067e7e5d04d1f901cafaad8baa2",
                "md5": "557b6bcdb89c53705ee120c3254f2b12",
                "sha256": "48ec96d457f802a347763dee1d3e1a273f11f90e4e595df17fd44613dd14a61c"
            },
            "downloads": -1,
            "filename": "Pint-Pandas-0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "557b6bcdb89c53705ee120c3254f2b12",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 55657,
            "upload_time": "2023-09-08T02:56:41",
            "upload_time_iso_8601": "2023-09-08T02:56:41.499067Z",
            "url": "https://files.pythonhosted.org/packages/05/da/01b1e4eea32280194eb58f73725451afe067e7e5d04d1f901cafaad8baa2/Pint-Pandas-0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-08 02:56:41",
    "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"
}
        
Elapsed time: 0.27727s