Skip to content

Commit 7df89d3

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 c2bcc27 commit 7df89d3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

doc/example.feather

1.09 KB
Binary file not shown.

doc/source/whatsnew/v1.0.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Other enhancements
125125
- Roundtripping DataFrames with nullable integer or string data types to parquet
126126
(:meth:`~DataFrame.to_parquet` / :func:`read_parquet`) using the `'pyarrow'` engine
127127
now preserve those data types with pyarrow >= 1.0.0 (:issue:`20612`).
128+
- :meth:`Series.map` now accepts ``collections.abc.Mapping` subclasses as a mapper (:issue:`29733`)
128129
129130
Build Changes
130131
^^^^^^^^^^^^^
@@ -559,7 +560,6 @@ Other
559560
- Bug in :meth:`DataFrame.append` that raised ``IndexError`` when appending with empty list (:issue:`28769`)
560561
- Fix :class:`AbstractHolidayCalendar` to return correct results for
561562
years after 2030 (now goes up to 2200) (:issue:`27790`)
562-
- Bug in :meth:`Series.map` where the mapper could not be a dict-like object which subclasses `collections.abc.Mapping` (:issue:`29733`)
563563

564564

565565
.. _whatsnew_1000.contributors:

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3618,7 +3618,7 @@ def map(self, arg, na_action=None):
36183618
36193619
Parameters
36203620
----------
3621-
arg : function, dict, or Series
3621+
arg : function, dict, colletions.abc.Mapping subclass or Series
36223622
Mapping correspondence.
36233623
na_action : {None, 'ignore'}, default None
36243624
If 'ignore', propagate NaN values, without passing them to the

0 commit comments

Comments
 (0)