217 only seems to fix the unwanted type conversion to dtype='object' for columns with units, while the same happens with numeric columns without units.
In the following example, the "something_else" column has numerical values, but no associated units:
217 only seems to fix the unwanted type conversion to dtype='object' for columns with units, while the same happens with numeric columns without units.
In the following example, the "something_else" column has numerical values, but no associated units:
1st print statement:![grafik](https://github.com/hgrecco/pint-pandas/assets/40823270/470ebc77-7770-4852-83cb-b49c8bc9043b)
2nd print statement:![grafik](https://github.com/hgrecco/pint-pandas/assets/40823270/328dc335-8296-4f76-bd8a-6d55deace658)
This is fixed by using iloc, both, for columns with and without units.
pre-commit run --all-files
with no errors