Skip to content

Commit f7672f7

Browse files
committed
add PR reference in comments
1 parent c597428 commit f7672f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/apply.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,8 +1464,8 @@ def curried(x):
14641464
curried = func
14651465

14661466
# 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)
14691469
mapped = obj._map_values(mapper=curried)
14701470

14711471
if len(mapped) and isinstance(mapped[0], ABCSeries):

pandas/tests/apply/test_frame_apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def test_apply_category_equalness(val):
742742
result = df.a.apply(lambda x: x == val)
743743
expected = Series(
744744
[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)
746746
tm.assert_series_equal(result, expected)
747747

748748

0 commit comments

Comments
 (0)