Skip to content

Commit 0474001

Browse files
Fix CI
1 parent d197e29 commit 0474001

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

doc/source/whatsnew/v2.1.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ and ``na_action="ignore"`` did not work correctly for any :class:`.ExtensionArra
172172
*New behavior*:
173173

174174
.. ipython:: python
175+
:okwarning:
175176
176177
ser = pd.Series(["a", "b", np.nan], dtype="category")
177178
ser.map(str.upper, na_action="ignore")

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10644,7 +10644,7 @@ def map(
1064410644
self,
1064510645
func: PythonFuncType,
1064610646
skipna: bool = False,
10647-
na_action: Literal["ignore"] | None = lib.no_default,
10647+
na_action: Literal["ignore"] | None | lib.NoDefault = lib.no_default,
1064810648
**kwargs,
1064910649
) -> DataFrame:
1065010650
"""

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6354,7 +6354,7 @@ def map(
63546354
self,
63556355
mapper,
63566356
skipna: bool = False,
6357-
na_action: Literal["ignore"] | None = lib.no_default,
6357+
na_action: Literal["ignore"] | None | lib.NoDefault = lib.no_default,
63586358
):
63596359
"""
63606360
Map values using an input mapping or function.

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4328,7 +4328,7 @@ def map(
43284328
self,
43294329
func: Callable | Mapping | Series | None = None,
43304330
skipna: bool = False,
4331-
na_action: Literal["ignore"] | None = lib.no_default,
4331+
na_action: Literal["ignore"] | None | lib.NoDefault = lib.no_default,
43324332
engine: Callable | None = None,
43334333
**kwargs,
43344334
) -> Series:

0 commit comments

Comments
 (0)