Skip to content

Commit 2fd7f48

Browse files
authored
Merge pull request #197 from quantopian/pandas-backward-compat
Make filters for categorical columns work on old versions of pandas, bump to 1.0.4
2 parents 78e703e + 3c2c503 commit 2fd7f48

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)