Skip to content

Commit 3e20569

Browse files
committed
fix categorical comparison with missing values pandas-dev#26504
1 parent 48a4b8c commit 3e20569

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/tests/arrays/categorical/test_operators.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def test_comparison_with_unknown_scalars(self):
188188
def test_comparison_of_ordered_categorical_with_missing_values(self):
189189
# https://github.com/pandas-dev/pandas/issues/26504
190190
# BUG: fix ordered categorical comparison with missing values (#26504 )
191-
# and following comparisons with scalars in categories with missing values
192-
# should be evaluated as False
191+
# and following comparisons with scalars in categories with missing
192+
# values should be evaluated as False
193193

194194
cat = Categorical([1, 2, 3, None], categories=[1, 2, 3], ordered=True)
195195

@@ -198,8 +198,7 @@ def test_comparison_of_ordered_categorical_with_missing_values(self):
198198

199199
@pytest.mark.parametrize('data,reverse,base', [
200200
(list("abc"), list("cba"), list("bbb")),
201-
([1, 2, 3], [3, 2, 1], [2, 2, 2])]
202-
)
201+
([1, 2, 3], [3, 2, 1], [2, 2, 2])])
203202
def test_comparisons(self, data, reverse, base):
204203
cat_rev = Series(
205204
Categorical(data, categories=reverse, ordered=True))

0 commit comments

Comments
 (0)