Closed rwijtvliet closed 1 year ago
This is unexpected. I don't think there's a workaround.
This now works as expected:
>>> df_bad.toy
energy
0 0.9450387373783038
1 0.43155204200882635
>>>df_bad.dtypes
toy energy pint[joule]
dtype: object
When drilling down into
df_bad
, I'd expectdf_bad.toy
to be the exact same dataframe asdf_good
. However, wheredf_good
has a single column of floats, with the unit saved once for the entire column......
df_bad.toy
has a column of (Quantity
) objects, each with their unit included:If this is expected/wanted/by design and I'm just using it wrong, let me know.