Skip to content

Commit 9d181c6

Browse files
committed
DOC - Added collections.abc.Mapping to arg doc of Series.map
DOC - Moved whatsnew of the aforementioned change from BUG to ENH
1 parent c263918 commit 9d181c6

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

doc/example.feather

1.09 KB
Binary file not shown.

doc/source/whatsnew/v1.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Other enhancements
205205
(:meth:`~DataFrame.to_parquet` / :func:`read_parquet`) using the `'pyarrow'` engine
206206
now preserve those data types with pyarrow >= 1.0.0 (:issue:`20612`).
207207
- The ``partition_cols`` argument in :meth:`DataFrame.to_parquet` now accepts a string (:issue:`27117`)
208+
- :meth:`Series.map` now accepts ``collections.abc.Mapping`` subclasses as a mapper (:issue:`29733`)
208209

209210
Build Changes
210211
^^^^^^^^^^^^^

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3421,7 +3421,7 @@ def map(self, arg, na_action=None):
34213421
34223422
Parameters
34233423
----------
3424-
arg : function, dict, or Series
3424+
arg : function, dict, colletions.abc.Mapping subclass or Series
34253425
Mapping correspondence.
34263426
na_action : {None, 'ignore'}, default None
34273427
If 'ignore', propagate NaN values, without passing them to the

0 commit comments

Comments
 (0)