Socket
Socket
Sign inDemoInstall

Pint-Pandas

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Pint-Pandas

Extend Pandas Dataframe with Physical quantities module


Maintainers
1

.. 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!

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc