Skip to content

Commit 613d87a

Browse files
update grid.py
Pandas 1.0.1 had a breaking change for qgrid because core.index was deprecated. This fixes it. For more information see: #287
1 parent 538f08a commit 613d87a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

qgrid/grid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def should_be_stringified(col_series):
876876
hasattr(col_series, 'cat') or \
877877
isinstance(col_series, pd.PeriodIndex)
878878

879-
if type(df.index) == pd.core.index.MultiIndex:
879+
if type(df.index) == pd.MultiIndex:
880880
self._multi_index = True
881881
for idx, cur_level in enumerate(df.index.levels):
882882
if cur_level.name:
@@ -913,7 +913,7 @@ def should_be_stringified(col_series):
913913
).map(stringify)
914914
self._set_col_series_on_df(col_name, df, series_to_set)
915915

916-
if type(df.index) == pd.core.index.MultiIndex and \
916+
if type(df.index) == pd.MultiIndex and \
917917
not self._disable_grouping:
918918
previous_value = None
919919
row_styles = {}

0 commit comments

Comments
 (0)