hgrecco / pint-pandas

Pandas support for pint
Other
169 stars 42 forks source link

pint_pandas.quantify tries to parse columns without unit #119

Closed wakass closed 1 year ago

wakass commented 2 years ago

pint_pandas' quantify function currently is not able to convert only part of the columns that are in the dataframe. It would be convenient to be able to do this, since any other columns contribute greatly to the easy of use of pandas: E.g. groupby, etc.

Any other option to solve this problem, adding some robustness here (leaving unconvertible columns intact), could ofcourse also work.

This seems related to issue #46

C:\Python39\lib\site-packages\pint_pandas\pint_array.py:194: RuntimeWarning: pint-pandas does not support magnitudes of <class 'str'>. Converting magnitudes to float.

andrewgsavage commented 1 year ago

closed by #132