Skip to content

Commit

Permalink
PERF: categorical rank GH#15498
Browse files Browse the repository at this point in the history
check for numeric instead of monotonic
  • Loading branch information
jeet63 committed Mar 1, 2017
1 parent 45dd125 commit 81df7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ def _values_for_rank(self):
if mask.any():
values = values.astype('float64')
values[mask] = np.nan
elif self.categories.is_monotonic:
elif self.categories.is_numeric():
values = np.array(self)
else:
values = np.array(
Expand Down

0 comments on commit 81df7df

Please sign in to comment.