From 24f0f5e6a516981fe52bbe736d8317d6610688c2 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Wed, 17 Apr 2024 15:57:49 +0200 Subject: [PATCH] Do not shadow index column --- holoviews/core/data/pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holoviews/core/data/pandas.py b/holoviews/core/data/pandas.py index 316ca8b58b..adc85e3802 100644 --- a/holoviews/core/data/pandas.py +++ b/holoviews/core/data/pandas.py @@ -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