pint-pandas icon indicating copy to clipboard operation
pint-pandas copied to clipboard

Pandas support for pint

Results 51 pint-pandas issues
Sort by recently updated
recently updated
newest added

- [ ] Closes # (insert issue number) - [ ] Executed `pre-commit run --all-files` with no errors - [ ] The change is fully covered by automated unit tests...

Currently to use a lot of numpy functionality, a user must first cast their series to a standard pint Quantity array. It would be great if operating on unit aware...

Currently the below example does not work: ```python from pint_pandas import PintArray p = PintArray(np.array([1,2,3], dtype=np.float64), 'm') p1 = -p ``` Instead you must multiply by a negative scalar as...

All the code on the readme shows underined for me https://github.com/hgrecco/pint-pandas

see [#217 ](https://github.com/hgrecco/pint-pandas/pull/217#issuecomment-2033232876)

Using clip on pint-typed columns issues `UnitStrippedWarning` with Pint-Pandas 0.5, Pint 0.23 and pandas 2.1.4, on Windows. For example: ```python import pandas as pd import pint_pandas ureg = pint_pandas.PintType.ureg lb...

If I want to set the units output format just for writing one output file, is there something less global than setting the `pint.UnitRegistry.default_format` like below? ``` prev_format = pint.UnitRegistry.default_format...

The main docs https://pint-pandas.readthedocs.io/en/docs/ don't seem to be linked on either https://github.com/hgrecco/pint-pandas/blob/master/README.rst or https://pypi.org/project/Pint-Pandas/ , so they're somewhat difficult to find. For example, both https://pint.readthedocs.io/en/0.10.1/pint-pandas.html and https://pint.readthedocs.io/en/0.18/pint-pandas.html appear in Google...

It is convenient to use pd.Series.round, but not with PintArrays. Here is a testcase: ``` import pandas as pd import pint import pint_pandas aa = pd.Series([1.2345678, 2.3456789]) print(aa) print(aa.round(2)) bb...