Skip to content

Commit

Permalink
Do not shadow index column
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 17, 2024
1 parent c53320f commit 24f0f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/core/data/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def dtype(cls, dataset, dimension):
def indexes(cls, data):
index_names = data.index.names if isinstance(data, pd.DataFrame) else [data.index.name]
if index_names == [None]:
index_names = ['index']
index_names = ['_index'] if 'index' in data.columns else ['index']
return index_names

@classmethod
Expand Down

0 comments on commit 24f0f5e

Please sign in to comment.