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
ARROW-1754: [Python] alternative fix for duplicate index/column name that preserves index name if available
Related to the discussion about the pandas metadata specification in pandas-dev/pandas#18201, and an alternative to #1271.
I don't open this PR because it should necessarily be merged, I just want to show that it is not that difficult to both fix [ARROW-1754](https://issues.apache.org/jira/browse/ARROW-1754) and preserve index names as field names when possible (as this was mentioned in pandas-dev/pandas#18201 as the reason to make this change to not preserve index names).
The diff is partly a revert of #1271, but then adapted to the current codebase.
Main reasons I prefer to preserve index names: 1) usability in pyarrow itself (if you would want to work with pyarrow Tables created from pandas) and 2) when interchanging parquet files with other people / other non-pandas systems, then it would be much nicer to not have `__index_level_n__` column names if possible.
Author: Joris Van den Bossche <[email protected]>
Closes#1408 from jorisvandenbossche/index-names and squashes the following commits:
eef1d33 [Joris Van den Bossche] alternative fix for duplicate index/column name that preserves index name if available
0 commit comments