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 e32d5be commit 508dd1eCopy full SHA for 508dd1e
pandas/_libs/parsers.pyx
@@ -1298,8 +1298,8 @@ cdef class TextReader:
1298
elif not cats.is_monotonic_increasing:
1299
# sort categories and recode if necessary
1300
unsorted = cats.copy()
1301
- cats = cats.sort_values()
1302
- indexer = cats.get_indexer(unsorted)
+ categories = cats.sort_values()
+ indexer = categories.get_indexer(unsorted)
1303
codes = take_1d(indexer, codes, fill_value=-1)
1304
ordered = False
1305
else:
0 commit comments