We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65fd6d commit c37724bCopy full SHA for c37724b
pandas/tests/test_categorical.py
@@ -87,11 +87,7 @@ def test_constructor_unsortable(self):
87
self.assertFalse(factor.ordered)
88
89
# this however will raise as cannot be sorted
90
- # but fixed in newer versions of numpy
91
- if LooseVersion(np.__version__) < "1.10":
92
- self.assertRaises(TypeError, lambda : Categorical.from_array(arr, ordered=True))
93
- else:
94
- Categorical.from_array(arr, ordered=True)
+ self.assertRaises(TypeError, lambda : Categorical.from_array(arr, ordered=True))
95
96
def test_is_equal_dtype(self):
97
0 commit comments