-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
using my binder :
https://mybinder.org/v2/gh/quantopian/qgrid-notebooks/master?filepath=index.ipynb
i've an error on the first cell:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-ef1f68cba5a6> in <module>
10 'D' : ["foo", "bar", "buzz", "bippity","boppity", "foo", "foo", "bar", "zoo"] })
11 df_types['E'] = df_types['D'] == 'foo'
---> 12 qgrid_widget = qgrid.show_grid(df_types, show_toolbar=True)
13 qgrid_widget
/srv/conda/envs/notebook/lib/python3.7/site-packages/qgrid/grid.py in show_grid(data_frame, show_toolbar, precision, grid_options, column_options, column_definitions, row_edit_callback)
509 column_definitions=column_definitions,
510 row_edit_callback=row_edit_callback,
--> 511 show_toolbar=show_toolbar)
512
513
/srv/conda/envs/notebook/lib/python3.7/site-packages/qgrid/grid.py in __init__(self, *args, **kwargs)
625
626 if self.df is not None:
--> 627 self._update_df()
628
629 def _grid_options_default(self):
/srv/conda/envs/notebook/lib/python3.7/site-packages/qgrid/grid.py in _update_df(self)
818 self._unfiltered_df = self._df.copy()
819
--> 820 self._update_table(update_columns=True, fire_data_change_event=False)
821 self._ignore_df_changed = False
822
/srv/conda/envs/notebook/lib/python3.7/site-packages/qgrid/grid.py in _update_table(self, update_columns, triggered_by, scroll_to_row, fire_data_change_event)
877 isinstance(col_series, pd.PeriodIndex)
878
--> 879 if type(df.index) == pd.core.index.MultiIndex:
880 self._multi_index = True
881 for idx, cur_level in enumerate(df.index.levels):
AttributeError: module 'pandas.core' has no attribute 'index'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels