We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b7a99d commit e748276Copy full SHA for e748276
ipydatagrid/datagrid.py
@@ -410,7 +410,9 @@ def get_visible_data(self):
410
if self._visible_rows:
411
data['data'] = [data['data'][i] for i in self._visible_rows]
412
413
- return pd.DataFrame(data['data']).set_index(self._data['schema']['primaryKey'])
+ return_df = pd.DataFrame(data['data']).set_index(self._data['schema']['primaryKey'])
414
+ return_df.index = return_df.index.droplevel(return_df.index.nlevels - 1)
415
+ return return_df
416
417
def transform(self, transforms):
418
"""Apply a list of transformation to this DataGrid."""
0 commit comments