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
This leads to an error on read, writing is possible however. Since the format has a fundamental problem with this case if there are columns with the same name but different data types this is not fixable.
However, df.to_hdf should just not write the respective dataframe if the column index is not unique.
The text was updated successfully, but these errors were encountered:
Only the last call fails with an InvalidIndexError: Reindexing only valid with uniquely valued Index objects in Index.get_indexer. You could silence the error by using get_indexer_non_unique instead but as described I think the reading will be broken if you have different datatypes in the columns.
It can be fixed by adding a check for the uniqueness of the column index in the fixed format. Note that this problem does not occur for the table format.
This leads to an error on read, writing is possible however. Since the format has a fundamental problem with this case if there are columns with the same name but different data types this is not fixable.
However,
df.to_hdf
should just not write the respective dataframe if the column index is not unique.The text was updated successfully, but these errors were encountered: