Skip to content

Commit 3c2c503

Browse files
author
Tim Shawver
committed
Make filters for categorical columns work on old versions of pandas, like 0.18.
1 parent 78e703e commit 3c2c503

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qgrid/grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ def _handle_get_column_min_max(self, content):
985985
return
986986
else:
987987
if col_info['type'] == 'any':
988-
unique_list = col_series.dtype.categories
988+
unique_list = col_series.cat.categories
989989
else:
990990
if col_name in self._sorted_column_cache:
991991
unique_list = self._sorted_column_cache[col_name]

0 commit comments

Comments
 (0)