File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1464,8 +1464,8 @@ def curried(x):
1464
1464
curried = func
1465
1465
1466
1466
# remove the `na_action="ignore"` as default has been changed in
1467
- # Categorical (GH51645 ).
1468
- # Reference for below fix (GH )
1467
+ # Categorical (GH 51645 ).
1468
+ # Reference for below fix (GH 59966 )
1469
1469
mapped = obj ._map_values (mapper = curried )
1470
1470
1471
1471
if len (mapped ) and isinstance (mapped [0 ], ABCSeries ):
Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ def test_apply_category_equalness(val):
742
742
result = df .a .apply (lambda x : x == val )
743
743
expected = Series (
744
744
[False if pd .isnull (x ) else x == val for x in df_values ], name = "a"
745
- )
745
+ ) # False since behavior of NaN for categorical dtype has been changed (GH 59966)
746
746
tm .assert_series_equal (result , expected )
747
747
748
748
You can’t perform that action at this time.
0 commit comments