We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba7e83d commit ea479b2Copy full SHA for ea479b2
pandas/core/apply.py
@@ -1469,10 +1469,7 @@ def curried(x):
1469
# row-wise access
1470
# apply doesn't have a `na_action` keyword and for backward compat reasons
1471
# 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)
+ mapped = obj._map_values(mapper=curried)
1476
1477
if len(mapped) and isinstance(mapped[0], ABCSeries):
1478
# GH#43986 Need to do list(mapped) in order to get treated as nested
0 commit comments