Skip to content

Commit ea479b2

Browse files
committed
Fix : removed na_action=ignore workaround for categorical data
1 parent ba7e83d commit ea479b2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/apply.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,10 +1469,7 @@ def curried(x):
14691469
# row-wise access
14701470
# apply doesn't have a `na_action` keyword and for backward compat reasons
14711471
# we need to give `na_action="ignore"` for categorical data.
1472-
# TODO: remove the `na_action="ignore"` when that default has been changed in
1473-
# Categorical (GH51645).
1474-
action = "ignore" if isinstance(obj.dtype, CategoricalDtype) else None
1475-
mapped = obj._map_values(mapper=curried, na_action=action)
1472+
mapped = obj._map_values(mapper=curried)
14761473

14771474
if len(mapped) and isinstance(mapped[0], ABCSeries):
14781475
# GH#43986 Need to do list(mapped) in order to get treated as nested

0 commit comments

Comments
 (0)