API: In Series.map, change the default value for na_action to "ignore"" #52196
Labels
API Design
Deprecate
Functionality to remove in pandas
Needs Discussion
Requires discussion from core team before further action
In Pandas 2.1,
Series.map
with the parameterna_ignore
set tona_ignore="ignore"
will work for all array types. (see #51809 + the various PRs that addna_action="ignore"
to the various ExtensionArrays). Previously the support forna_action="ignore"
was quite spotty.IMO
na_action="ignore"
is a better default value thanna_action=None
(the current default), because 99 % of the time when I use.map
, I want it to ignore Nans and assume it’s the same for others. E.g.:So I propose deprecating
None
as the default forna_action
in favor of"ignore"
.The text was updated successfully, but these errors were encountered: