Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pandas/core/dtypes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,9 @@ def _is_unorderable_exception(e):
"""

if PY36:
return "'>' not supported between instances of" in str(e)
str_e = str(e)
return ("'>' not supported between instances of" in str_e or
"'<' not supported between instances of" in str_e)

elif PY3:
return 'unorderable' in str(e)
Expand Down