We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee80370 commit dc5255fCopy full SHA for dc5255f
bokeh/models/sources.py
@@ -172,6 +172,9 @@ def _data_from_df(df):
172
except TypeError:
173
raise TypeError('Could not flatten MultiIndex columns. '
174
'use string column names or flatten manually')
175
+ # Transform columns CategoricalIndex in list
176
+ if isinstance(df.columns, pd.CategoricalIndex):
177
+ _df.columns = df.columns.tolist()
178
# Flatten index
179
index_name = ColumnDataSource._df_index_name(df)
180
if index_name == 'index':
0 commit comments