Closed mmarras closed 8 months ago
df.pint.dequantify() breaks unexpectedly (and error msg is cryptic) if column names contain duplicates.
df.pint.dequantify()
df = pd.DataFrame() df['test']= pd.Series([1,2,3], dtype='pint[kN]') df.insert(0,'test',df['test'],allow_duplicates=True)
df:
df
df.iloc[:,1:].pint.dequantify()
'DataFrame' object has no attribute 'dtype'
pint_pandas.version = 0.4, python 3.10
df.pint.dequantify()
breaks unexpectedly (and error msg is cryptic) if column names contain duplicates.df
:pint_pandas.version = 0.4, python 3.10