Open Cs137 opened 2 years ago
Yes, this would be nice.
@hgrecco has been wanting to separate out Measurement from pint, which might mean you want a separate package for uncertainties with pandas. Probably worth waiting till that's done too - although that's been on the agenda for a while now.
Many thanks for your work on this package and especially for
pint
itself! It makes life much easier, and in order to make life more easy, I would like to request a feature.In my opinion the usage of the "pint" dtype for a column containing an
uarray
would be very handy, but there seems to be an issue with the__init__
method ofPintArray
. If I get it correctly, it creates anp.array
from the provided data and thus wants to convert theuarray
into floats, which causes the following error (I shortened the path and inserted [...]):Here some snippets to reproduce the case:
A compatibility between
PintArray
anduncertainties
, as fulfilled by theMeasurement
class inpint
would in my opinion be a huge improvement inpint-pandas
.