diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 7d50b466f5126..77faacc12e537 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -39,7 +39,6 @@ is_sequence, ) from pandas.core.dtypes.dtypes import ( - CategoricalDtype, ExtensionDtype, ) from pandas.core.dtypes.generic import ( @@ -1469,10 +1468,7 @@ def curried(x): # row-wise access # apply doesn't have a `na_action` keyword and for backward compat reasons # we need to give `na_action="ignore"` for categorical data. - # TODO: remove the `na_action="ignore"` when that default has been changed in - # Categorical (GH51645). - action = "ignore" if isinstance(obj.dtype, CategoricalDtype) else None - mapped = obj._map_values(mapper=curried, na_action=action) + mapped = obj._map_values(mapper=curried) if len(mapped) and isinstance(mapped[0], ABCSeries): # GH#43986 Need to do list(mapped) in order to get treated as nested