You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First column designate a 8 character code which should be handled as a string.
Second column is a datetime. The two columns are designated as index column with index_col argument :
As you can see, there is a missing "0" for POSTE column because it has been casted to integer, despite of dtype={"POSTE":str} argument. I also tried with dtype={"POSTE":object} instruction as indicated on forums it still gives the same result.
Apparently this only occurs only if column is used in an index column.
Column is not converted if I only use DATE for the index :
Hello,
I have a CSV like this :
First column designate a 8 character code which should be handled as a string.
Second column is a datetime. The two columns are designated as index column with index_col argument :
As you can see, there is a missing "0" for POSTE column because it has been casted to integer, despite of
dtype={"POSTE":str}
argument. I also tried withdtype={"POSTE":object}
instruction as indicated on forums it still gives the same result.Apparently this only occurs only if column is used in an index column.
Column is not converted if I only use DATE for the index :
I'm using Pandas v 0.14.1 so it may have been fixed recently.
Do you confirm this is not the correct behaviour ?
Regards
The text was updated successfully, but these errors were encountered: