Repository: pandas-dev/pandas (python)

Issue:
API: Rename arg to func in Series.map for consistency
The API of methods taking udf follow certain patterns that make them consistent and easier to learn and use. There are some small differences, which have been listed in #40112 and #61128.

This issue is to rename the `arg` parameter of `Series.map` to `func`, which is the name consistently used in almost all methods. In the case of `Series.map`, the argument is slightly different than others, given that `arg` or `func` can also be a `dict` or a `Series`, which will make `map` replace values from these mappings, instead of executing an elementwise udf.

This issue is for the renaming of the parameter, making the parameter consistent with other methods such as `DataFrame.apply` can be considered in another issue. But there are some cases to consider, given that the behavior of `map` is slightly different when providing a mapping, than when providing a function that maps. In particular, `map` will use `NaN` when the mapping returns `None`, but it will use `None` when the function returns `None`. Also, if we stop supporting dictionaries, users in general should just replace their code from `Series.map(my_dict)` to `Series.map(my_dict.get)`. But there are some special cases, for example when the dictionary is a `defaultdict`, `.get` will return `None`, while the current `map` implementation with a `defaultdict` will consider the default value.

Pull request:
API: Rename `arg` to `func` in `Series.map`
- [X] closes #61260
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [X] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [X] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

CC: @rhshadrach 

Patch:
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 184ca58190..8873f7c1a8 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -421,6 +421,7 @@ Other Deprecations
 - Deprecated lowercase strings ``w``, ``w-mon``, ``w-tue``, etc. denoting frequencies in :class:`Week` in favour of ``W``, ``W-MON``, ``W-TUE``, etc. (:issue:`58998`)
 - Deprecated parameter ``method`` in :meth:`DataFrame.reindex_like` / :meth:`Series.reindex_like` (:issue:`58667`)
 - Deprecated strings ``w``, ``d``, ``MIN``, ``MS``, ``US`` and ``NS`` denoting units in :class:`Timedelta` in favour of ``W``, ``D``, ``min``, ``ms``, ``us`` and ``ns`` (:issue:`59051`)
+- Deprecated the ``arg`` parameter of ``Series.map``; pass the added ``func`` argument instead. (:issue:`61260`)
 - Deprecated using ``epoch`` date format in :meth:`DataFrame.to_json` and :meth:`Series.to_json`, use ``iso`` instead. (:issue:`57063`)
 
 .. ---------------------------------------------------------------------------
diff --git a/pandas/core/series.py b/pandas/core/series.py
index 03a2ce85a0..d6a982c65e 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -52,6 +52,9 @@ from pandas.util._decorators import (
     doc,
     set_module,
 )
+from pandas.util._exceptions import (
+    find_stack_level,
+)
 from pandas.util._validators import (
     validate_ascending,
     validate_bool_kwarg,
@@ -4320,7 +4323,7 @@ class Series(base.IndexOpsMixin, NDFrame):  # type: ignore[misc]
 
     def map(
         self,
-        arg: Callable | Mapping | Series,
+        func: Callable | Mapping | Series | None = None,
         na_action: Literal["ignore"] | None = None,
         **kwargs,
     ) -> Series:
@@ -4333,8 +4336,8 @@ class Series(base.IndexOpsMixin, NDFrame):  # type: ignore[misc]
 
         Parameters
         ----------
-        arg : function, collections.abc.Mapping subclass or Series
-            Mapping correspondence.
+        func : function, collections.abc.Mapping subclass or Series
+            Function or mapping correspondence.
         na_action : {None, 'ignore'}, default None
             If 'ignore', propagate NaN values, without passing them to the
             mapping correspondence.
@@ -4404,9 +4407,22 @@ class Series(base.IndexOpsMixin, NDFrame):  # type: ignore[misc]
         3  I am a rabbit
         dtype: object
         """
-        if callable(arg):
-            arg = functools.partial(arg, **kwargs)
-        new_values = self._map_values(arg, na_action=na_action)
+        if func is None:
+            if "arg" in kwargs:
+                # `.map(arg=my_func)`
+                func = kwargs.pop("arg")
+                warnings.warn(
+                    "The parameter `arg` has been renamed to `func`, and it "
+                    "will stop being supported in a future version of pandas.",
+                    FutureWarning,
+                    stacklevel=find_stack_level(),
+                )
+            else:
+                raise ValueError("The `func` parameter is required")
+
+        if callable(func):
+            func = functools.partial(func, **kwargs)
+        new_values = self._map_values(func, na_action=na_action)
         return self._constructor(new_values, index=self.index, copy=False).__finalize__(
             self, method="map"
         )
diff --git a/web/pandas/community/benchmarks.md b/web/pandas/community/benchmarks.md
index 1e63832a5a..5a8198a979 100644
--- a/web/pandas/community/benchmarks.md
+++ b/web/pandas/community/benchmarks.md
@@ -36,9 +36,8 @@ available at the [pandas sponsors]({{ base_url }}about/sponsors.html) page.
 
 Results of the benchmarks are available at:
 
-- Original server: [asv](https://asv-runner.github.io/asv-collection/pandas/)
-- OVH server: [asv](https://pandas.pydata.org/benchmarks/asv/) (benchmarks results can
-  also be visualized in this [Conbench PoC](http://57.128.112.95:5000/)
+- GitHub Actions results: [asv](https://pandas-dev.github.io/asv-runner/)
+- OVH server: [asv](https://pandas.pydata.org/benchmarks/asv/)
 
 ### Original server configuration
 
diff --git a/web/pandas/config.yml b/web/pandas/config.yml
index 679778330b..cb5447591d 100644
--- a/web/pandas/config.yml
+++ b/web/pandas/config.yml
@@ -146,11 +146,6 @@ sponsors:
     url: https://numfocus.org/
     logo: static/img/partners/numfocus.svg
     kind: numfocus
-  - name: "Coiled"
-    url: https://www.coiled.io
-    logo: static/img/partners/coiled.svg
-    kind: partner
-    description: "Patrick Hoefler"
   - name: "Nvidia"
     url: https://www.nvidia.com
     logo: static/img/partners/nvidia.svg
@@ -192,5 +187,20 @@ sponsors:
   - name: "d-fine GmbH"
     url: https://www.d-fine.com/en/
     kind: partner
+  - name: "Two Sigma"
+    url: https://www.twosigma.com/
+    kind: partner
+  - name: "Voltron Data"
+    url: https://voltrondata.com/
+    kind: partner
+  - name: "Intel"
+    url: https://www.intel.com/
+    kind: partner
+  - name: "Chan Zuckerberg Initiative"
+    url: https://chanzuckerberg.com/
+    kind: regular
+  - name: "Coiled"
+    url: https://www.coiled.io
+    kind: partner
 roadmap:
   pdeps_path: pdeps
diff --git a/web/pandas/static/img/partners/coiled.svg b/web/pandas/static/img/partners/coiled.svg
deleted file mode 100644
index 2d76ce1500..0000000000
--- a/web/pandas/static/img/partners/coiled.svg
+++ /dev/null
@@ -1,234 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
-   version="1.1"
-   id="svg18"
-   width="995.65601"
-   height="491.82666"
-   viewBox="0 0 995.65601 491.82666"
-   sodipodi:docname="coiled.svg"
-   inkscape:version="1.2.2 (b0a84865, 2022-12-01)"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:svg="http://www.w3.org/2000/svg">
-  <defs
-     id="defs22">
-    <clipPath
-       clipPathUnits="userSpaceOnUse"
-       id="clipPath36">
-      <path
-         d="M 0,368.87 H 746.742 V 0 H 0 Z"
-         id="path34" />
-    </clipPath>
-  </defs>
-  <sodipodi:namedview
-     id="namedview20"
-     pagecolor="#ffffff"
-     bordercolor="#000000"
-     borderopacity="0.25"
-     inkscape:showpageshadow="2"
-     inkscape:pageopacity="0.0"
-     inkscape:pagecheckerboard="0"
-     inkscape:deskcolor="#d1d1d1"
-     showgrid="false"
-     inkscape:zoom="0.47984385"
-     inkscape:cx="499.1207"
-     inkscape:cy="245.91333"
-     inkscape:window-width="1309"
-     inkscape:window-height="456"
-     inkscape:window-x="0"
-     inkscape:window-y="37"
-     inkscape:window-maximized="0"
-     inkscape:current-layer="g24" />
-  <g
-     id="g24"
-     inkscape:groupmode="layer"
-     inkscape:label="Coiled Logo - 2022- Black and White"
-     transform="matrix(1.3333333,0,0,-1.3333333,0,491.82667)">
-    <g
-       id="g26"
-       transform="translate(241.374,83.57)">
-      <path
-         d="M 0,0 5.69,16.01 H 5.9 L 11.59,0 H -0.01 Z M 7.4,19.78 H 4.27 L -7.4,-12.32 h 3.06 l 3.42,9.68 h 13.45 l 3.42,-9.68 h 3.06 l -11.6,32.1 z"
-         style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-         id="path28" />
-    </g>
-    <g
-       id="g30">
-      <g
-         id="g32"
-         clip-path="url(#clipPath36)">
-        <g
-           id="g38"
-           transform="translate(297.394,80.14)">
-          <path
-             d="m 0,0 c -0.93,-1.99 -2.35,-3.56 -4.2,-4.63 -1.85,-1.07 -4.13,-1.64 -6.9,-1.64 h -6.33 v 26.83 h 6.83 c 2.63,0 4.77,-0.57 6.55,-1.57 1.78,-1 3.13,-2.63 3.99,-4.63 C 0.87,12.37 1.29,10.02 1.29,7.24 1.36,4.46 0.93,2.04 0.01,-0.02 m 2.47,15.83 c -1.14,2.42 -2.85,4.2 -4.98,5.48 -2.13,1.28 -4.77,1.92 -7.83,1.92 h -9.96 v -32.1 h 9.32 c 3.2,0 5.98,0.64 8.26,1.92 2.28,1.28 3.99,3.13 5.2,5.55 1.21,2.42 1.78,5.34 1.78,8.68 0,3.34 -0.64,6.19 -1.78,8.54"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path40" />
-        </g>
-        <g
-           id="g42"
-           transform="translate(321.8039,80.5201)">
-          <path
-             d="m 0,0 c 0,-1.35 -0.28,-2.49 -0.85,-3.63 -0.57,-1.07 -1.42,-1.99 -2.49,-2.63 -1.07,-0.64 -2.35,-1 -3.84,-1 -1.49,0 -2.92,0.36 -3.91,1.21 -1.07,0.78 -1.57,1.92 -1.57,3.42 0,1 0.28,1.78 0.78,2.42 0.5,0.64 1.28,1.14 2.21,1.49 0.93,0.36 2.13,0.64 3.49,0.78 0.5,0.07 1.07,0.14 1.71,0.21 0.64,0.07 1.28,0.21 1.92,0.28 0.64,0.14 1.21,0.28 1.71,0.43 0.5,0.14 0.85,0.36 1.07,0.57 V -0.01 H 0.02 Z m 1.98,11.09 c -0.57,1.07 -1.21,1.85 -2.06,2.49 -0.85,0.64 -1.78,1 -2.78,1.28 -1,0.21 -1.99,0.36 -2.85,0.36 -1.21,0 -2.42,-0.14 -3.63,-0.5 -1.21,-0.36 -2.28,-0.93 -3.2,-1.71 -0.93,-0.78 -1.71,-1.85 -2.28,-3.13 l 2.63,-0.93 c 0.43,1.07 1.21,1.92 2.28,2.7 1.07,0.78 2.49,1.14 4.27,1.14 1.78,0 3.2,-0.5 4.2,-1.42 1,-0.92 1.49,-2.28 1.49,-3.91 V 6.89 C 0.05,6.25 -0.23,5.82 -0.66,5.54 -1.16,5.26 -1.87,5.04 -2.79,4.97 -3.72,4.9 -4.85,4.69 -6.21,4.54 -7.56,4.4 -8.77,4.11 -9.91,3.83 c -1.14,-0.28 -2.13,-0.71 -2.92,-1.21 -0.85,-0.5 -1.49,-1.21 -1.92,-1.99 -0.43,-0.85 -0.71,-1.85 -0.71,-2.99 0,-1.57 0.36,-2.85 1.07,-3.91 0.71,-1.07 1.64,-1.92 2.85,-2.49 1.21,-0.57 2.49,-0.85 3.99,-0.85 1.35,0 2.49,0.21 3.49,0.64 1,0.43 1.85,1 2.49,1.64 0.64,0.64 1.14,1.35 1.49,2.06 H 0.06 V -9.11 H 2.84 V 7.26 C 2.77,8.68 2.56,10.04 1.99,11.1"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path44" />
-        </g>
-        <g
-           id="g46"
-           transform="translate(347.484,90.04)">
-          <path
-             d="M 0,0 -2.56,-0.71 C -2.77,0 -3.13,0.64 -3.63,1.28 -4.13,1.92 -4.7,2.35 -5.41,2.7 c -0.71,0.35 -1.64,0.5 -2.7,0.5 -1.64,0 -2.99,-0.36 -3.99,-1.14 -1.07,-0.78 -1.57,-1.78 -1.57,-2.99 0,-1.07 0.36,-1.85 1.07,-2.49 0.71,-0.64 1.85,-1.14 3.34,-1.49 l 3.63,-0.85 c 1.99,-0.5 3.56,-1.28 4.55,-2.35 0.99,-1.07 1.49,-2.42 1.49,-3.99 0,-1.35 -0.36,-2.56 -1.14,-3.63 -0.78,-1.07 -1.78,-1.85 -3.13,-2.49 -1.35,-0.64 -2.92,-0.93 -4.63,-0.93 -2.35,0 -4.27,0.5 -5.84,1.57 -1.49,1.07 -2.49,2.56 -2.92,4.63 l 2.7,0.64 c 0.36,-1.42 1,-2.49 2.06,-3.27 1,-0.71 2.35,-1.07 3.99,-1.07 1.85,0 3.34,0.43 4.41,1.28 1.07,0.85 1.64,1.85 1.64,3.13 0,1 -0.36,1.78 -1,2.49 -0.64,0.64 -1.64,1.14 -2.92,1.49 l -3.91,0.93 c -2.06,0.5 -3.63,1.28 -4.63,2.42 -1,1.14 -1.49,2.42 -1.49,4.06 0,1.35 0.36,2.49 1.07,3.49 0.71,1 1.71,1.78 2.99,2.35 1.28,0.57 2.7,0.85 4.34,0.85 2.21,0 3.99,-0.5 5.27,-1.49 1.28,-1 2.13,-2.56 2.7,-4.34"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path48" />
-        </g>
-        <g
-           id="g50"
-           transform="translate(371.824,71.26)">
-          <path
-             d="m 0,0 h -3.56 l -9.39,11.95 -2.78,-2.63 V 0 h -2.77 v 32.09 h 2.77 V 12.73 h 0.36 l 11.24,11.32 h 3.56 L -10.89,13.73 Z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path52" />
-        </g>
-        <g
-           id="g54"
-           transform="translate(413.244,93.32)">
-          <path
-             d="m 0,0 h -2.92 c -0.21,1.07 -0.64,2.13 -1.21,3.06 -0.57,0.93 -1.28,1.78 -2.13,2.49 -0.85,0.71 -1.85,1.28 -2.92,1.64 -1.07,0.36 -2.28,0.57 -3.56,0.57 -1.99,0 -3.84,-0.5 -5.55,-1.57 -1.71,-1.07 -2.99,-2.63 -3.99,-4.63 -1,-2.06 -1.49,-4.55 -1.49,-7.47 0,-2.92 0.5,-5.48 1.49,-7.54 1,-2.06 2.35,-3.56 3.99,-4.63 1.64,-1.07 3.49,-1.57 5.55,-1.57 1.28,0 2.42,0.21 3.56,0.57 1.07,0.36 2.06,0.93 2.92,1.64 0.86,0.71 1.57,1.49 2.13,2.49 0.57,0.93 0.93,1.99 1.21,3.06 H 0 c -0.28,-1.49 -0.71,-2.85 -1.49,-4.13 -0.78,-1.28 -1.64,-2.35 -2.7,-3.34 -1.07,-1 -2.35,-1.71 -3.77,-2.21 -1.42,-0.5 -2.99,-0.78 -4.7,-0.78 -2.7,0 -5.12,0.71 -7.19,2.06 -2.06,1.35 -3.7,3.27 -4.91,5.69 -1.21,2.42 -1.78,5.34 -1.78,8.75 0,3.41 0.57,6.26 1.78,8.75 1.21,2.49 2.85,4.34 4.91,5.69 2.06,1.35 4.48,2.06 7.19,2.06 1.71,0 3.27,-0.28 4.7,-0.78 1.42,-0.5 2.7,-1.28 3.77,-2.21 C -3.12,6.73 -2.2,5.6 -1.49,4.32 -0.78,3.04 -0.28,1.47 0,-0.02"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path56" />
-        </g>
-        <g
-           id="g58"
-           transform="translate(435.164,78.23)">
-          <path
-             d="m 0,0 c -0.57,-1.49 -1.49,-2.7 -2.63,-3.56 -1.14,-0.93 -2.56,-1.35 -4.27,-1.35 -1.71,0 -3.06,0.43 -4.27,1.35 -1.14,0.93 -2.06,2.06 -2.63,3.56 -0.57,1.49 -0.93,3.13 -0.93,4.91 0,1.78 0.28,3.49 0.93,4.98 0.57,1.49 1.49,2.7 2.63,3.63 1.14,0.93 2.56,1.35 4.27,1.35 1.71,0 3.06,-0.43 4.27,-1.35 C -1.49,12.59 -0.57,11.39 0,9.89 0.64,8.4 0.93,6.76 0.93,4.91 0.93,3.06 0.57,1.49 0,0 m 2.35,11.46 c -0.93,1.85 -2.13,3.34 -3.7,4.41 -1.57,1.07 -3.42,1.57 -5.48,1.57 -2.06,0 -3.91,-0.5 -5.48,-1.57 -1.57,-1.07 -2.85,-2.49 -3.7,-4.41 -0.85,-1.92 -1.35,-4.06 -1.35,-6.55 0,-2.49 0.43,-4.63 1.35,-6.48 0.93,-1.85 2.13,-3.34 3.7,-4.41 1.57,-1.07 3.42,-1.57 5.48,-1.57 2.06,0 3.91,0.5 5.48,1.57 1.57,1.07 2.85,2.49 3.7,4.41 0.93,1.85 1.35,3.99 1.35,6.48 0,2.49 -0.43,4.7 -1.35,6.55"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path60" />
-        </g>
-        <g
-           id="g62"
-           transform="translate(444.344,71.26)">
-          <path
-             d="m 0,0 v 24.05 h 2.7 v -3.7 h 0.21 c 0.5,1.28 1.28,2.21 2.42,2.92 1.14,0.71 2.49,1.07 4.06,1.07 1.57,0 2.99,-0.36 4.13,-1.14 1.07,-0.78 1.85,-1.85 2.42,-3.2 h 0.21 c 0.57,1.35 1.42,2.42 2.63,3.2 1.21,0.78 2.7,1.21 4.48,1.21 2.21,0 3.99,-0.71 5.27,-2.13 1.28,-1.42 1.92,-3.49 1.92,-6.12 V 0.01 h -2.78 v 16.15 c 0,1.92 -0.5,3.34 -1.42,4.27 -0.93,0.93 -2.28,1.42 -3.84,1.42 -1.85,0 -3.27,-0.57 -4.27,-1.71 -1,-1.14 -1.49,-2.56 -1.49,-4.27 V 0 H 13.8 v 16.37 c 0,1.64 -0.43,2.92 -1.35,3.91 -0.92,0.99 -2.21,1.49 -3.84,1.49 -1.14,0 -2.13,-0.28 -2.99,-0.78 -0.85,-0.5 -1.57,-1.28 -2.06,-2.28 -0.5,-1 -0.78,-2.06 -0.78,-3.34 l 0,-15.44 z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path64" />
-        </g>
-        <g
-           id="g66"
-           transform="translate(498.2141,78.24)">
-          <path
-             d="m 0,0 c -0.57,-1.49 -1.42,-2.7 -2.49,-3.56 -1.14,-0.85 -2.49,-1.35 -4.06,-1.35 -1.57,0 -2.85,0.43 -3.99,1.28 -1.07,0.85 -1.92,1.99 -2.49,3.56 -0.57,1.49 -0.85,3.2 -0.85,5.12 0,1.92 0.28,3.63 0.85,5.12 0.57,1.49 1.42,2.63 2.49,3.49 1.07,0.86 2.42,1.28 3.99,1.28 1.57,0 2.99,-0.43 4.06,-1.28 C -1.42,12.81 -0.57,11.6 0,10.1 0.57,8.61 0.85,6.97 0.85,5.12 0.85,3.27 0.57,1.49 0,0 m 2.42,11.52 c -0.85,1.85 -1.99,3.34 -3.49,4.34 -1.49,1.07 -3.2,1.57 -5.2,1.57 -1.49,0 -2.7,-0.28 -3.63,-0.78 -1,-0.5 -1.78,-1.14 -2.35,-1.92 -0.57,-0.78 -1.07,-1.49 -1.35,-2.21 h -0.36 v 4.55 h -2.7 v -33.09 h 2.78 V -2.5 h 0.28 c 0.36,-0.71 0.78,-1.49 1.35,-2.28 0.57,-0.78 1.42,-1.42 2.35,-1.92 0.93,-0.5 2.21,-0.78 3.63,-0.78 1.99,0 3.7,0.5 5.2,1.57 1.5,1.07 2.63,2.49 3.49,4.34 0.85,1.85 1.28,4.06 1.28,6.55 0,2.49 -0.5,4.7 -1.28,6.55"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path68" />
-        </g>
-        <g
-           id="g70"
-           transform="translate(521.7141,80.5201)">
-          <path
-             d="m 0,0 c 0,-1.35 -0.28,-2.49 -0.85,-3.63 -0.57,-1.07 -1.42,-1.99 -2.49,-2.63 -1.07,-0.64 -2.35,-1 -3.84,-1 -1.49,0 -2.92,0.36 -3.91,1.21 -1.07,0.78 -1.57,1.92 -1.57,3.42 0,1 0.28,1.78 0.78,2.42 0.5,0.64 1.28,1.14 2.21,1.49 0.93,0.36 2.13,0.64 3.49,0.78 0.5,0.07 1.07,0.14 1.71,0.21 0.64,0.07 1.28,0.21 1.85,0.28 0.64,0.14 1.21,0.28 1.71,0.43 0.5,0.15 0.85,0.36 1.07,0.57 V -0.01 H 0.02 Z m 1.98,11.09 c -0.57,1.07 -1.21,1.85 -2.06,2.49 -0.85,0.64 -1.78,1 -2.78,1.28 -1,0.21 -1.99,0.36 -2.85,0.36 -1.21,0 -2.42,-0.14 -3.63,-0.5 -1.21,-0.36 -2.28,-0.93 -3.2,-1.71 -0.93,-0.78 -1.71,-1.85 -2.28,-3.13 l 2.63,-0.93 c 0.43,1.07 1.21,1.92 2.28,2.7 1.07,0.78 2.49,1.14 4.27,1.14 1.78,0 3.2,-0.5 4.2,-1.42 1,-0.92 1.49,-2.28 1.49,-3.91 V 6.89 C 0.05,6.25 -0.23,5.82 -0.66,5.54 -1.16,5.26 -1.87,5.04 -2.79,4.97 -3.72,4.83 -4.85,4.69 -6.21,4.54 -7.56,4.4 -8.77,4.11 -9.91,3.83 c -1.14,-0.28 -2.13,-0.71 -2.92,-1.21 -0.85,-0.5 -1.49,-1.21 -1.92,-1.99 -0.43,-0.85 -0.71,-1.85 -0.71,-2.99 0,-1.57 0.36,-2.85 1.07,-3.91 0.71,-1.07 1.64,-1.92 2.85,-2.49 1.21,-0.57 2.49,-0.85 3.99,-0.85 1.35,0 2.49,0.21 3.49,0.64 1,0.43 1.85,1 2.49,1.64 0.64,0.64 1.14,1.35 1.49,2.06 H 0.06 V -9.11 H 2.84 V 7.26 C 2.77,8.68 2.48,10.04 1.99,11.1"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path72" />
-        </g>
-        <g
-           id="g74"
-           transform="translate(534.014,86.27)">
-          <path
-             d="M 0,0 V -15.02 H -2.78 V 9.03 h 2.7 V 5.26 h 0.21 c 0.57,1.21 1.42,2.21 2.63,2.99 1.21,0.71 2.7,1.14 4.41,1.14 1.71,0 3.06,-0.36 4.27,-1 1.21,-0.71 2.21,-1.64 2.85,-2.99 0.64,-1.35 1,-2.92 1,-4.84 V -15.03 H 12.51 V 0.41 c 0,1.99 -0.57,3.56 -1.64,4.7 C 9.8,6.25 8.31,6.82 6.46,6.82 5.18,6.82 4.11,6.54 3.12,6.04 2.12,5.54 1.34,4.69 0.77,3.69 0.27,2.62 -0.01,1.41 -0.01,-0.01"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path76" />
-        </g>
-        <g
-           id="g78"
-           transform="translate(557.214,62.22)">
-          <path
-             d="m 0,0 c -0.57,0 -1.07,0.07 -1.57,0.14 -0.5,0.07 -0.85,0.21 -1.14,0.36 l 0.78,2.49 C -1,2.71 -0.15,2.56 0.63,2.63 c 0.71,0.07 1.42,0.43 1.99,1 0.57,0.57 1.07,1.49 1.57,2.7 l 0.85,2.42 -8.97,24.34 h 2.99 L 6.18,12.74 h 0.21 l 7.12,20.35 H 16.5 L 6.32,5.19 C 5.89,4.05 5.39,3.06 4.75,2.27 4.11,1.49 3.4,0.92 2.62,0.56 1.91,0.2 0.98,-0.01 -0.01,-0.01"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path80" />
-        </g>
-        <g
-           id="g82"
-           transform="translate(85.574,158.35)">
-          <path
-             d="m 0,0 c -46.81,-0.45 -85.12,37.13 -85.57,83.94 -0.45,46.81 37.13,85.12 83.94,85.57 H 0 Z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path84" />
-        </g>
-        <g
-           id="g86"
-           transform="translate(155.384,134.8)">
-          <path
-             d="M 0,0 C 0,34.93 -21.42,66.28 -53.97,78.97 V -78.96 C -21.43,-66.27 0,-34.93 0,0"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path88" />
-        </g>
-        <g
-           id="g90"
-           transform="translate(101.534,258.03)">
-          <path
-             d="m 0,0 c 30.61,0 55.42,24.8 55.43,55.41 0,30.61 -24.8,55.42 -55.41,55.43 H 0 V 0.01 Z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path92" />
-        </g>
-        <g
-           id="g94"
-           transform="translate(46.304,64.28)">
-          <path
-             d="M 0,0 C -0.02,-27.08 15.11,-51.9 39.2,-64.28 V 64.26 C 15.13,51.88 0,27.08 0,0.01 Z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path96" />
-        </g>
-        <g
-           id="g98"
-           transform="translate(454.4311,181.9546)">
-          <path
-             d="m 0,0 c 0,22.36 -13.83,36.92 -35.1,36.92 -21.27,0 -35.1,-14.55 -35.1,-36.92 0,-22.37 13.83,-36.92 35.1,-36.92 C -13.83,-36.92 0,-22.38 0,0 m -84.02,0 c 0,30 19.46,49.64 48.92,49.64 C -5.64,49.64 14,30 14,0 c 0,-30 -19.46,-49.47 -49.1,-49.47 -29.46,0 -48.92,19.63 -48.92,49.47 z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path100" />
-        </g>
-        <path
-           d="m 483.231,227.965 h 13.83 v -91.84 h -13.83 z"
-           style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-           id="path102" />
-        <path
-           d="m 516.842,269.795 h 13.83 v -133.69 h -13.83 z"
-           style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-           id="path104" />
-        <g
-           id="g106"
-           transform="translate(733.2923,181.9546)">
-          <path
-             d="m 0,0 c 0,20.91 -14.55,36.92 -34.37,36.92 -19.82,0 -34.56,-16.01 -34.56,-36.92 0,-20.91 14.74,-36.92 34.56,-36.92 C -14.55,-36.92 0,-20.74 0,0 m -82.75,0 c 0,28.73 19.64,49.64 46.56,49.64 14.35,0.27 27.79,-6.97 35.46,-19.09 h 0.18 v 57.29 h 14 V -45.85 H -0.19 L 0,-30.03 h -0.19 c -7.72,-12.3 -21.31,-19.67 -35.83,-19.43 -26.91,0 -46.73,20.91 -46.73,49.47 z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path108" />
-        </g>
-        <g
-           id="g110"
-           transform="translate(355.9671,226.3063)">
-          <path
-             d="m 0,0 h -17.807 c -1.054,4.71 -2.884,8.848 -5.492,12.414 -2.611,3.566 -5.77,6.57 -9.478,9.013 -3.71,2.444 -7.815,4.281 -12.314,5.514 -4.5,1.231 -8.18,1.848 -13.063,1.848 -8.903,0 -16.957,-2.069 -24.16,-6.206 -7.205,-4.138 -12.925,-10.235 -17.161,-18.291 -4.236,-8.056 -6.354,-17.939 -6.354,-29.648 0,-11.71 2.118,-21.592 6.354,-29.648 4.236,-8.057 9.956,-14.154 17.161,-18.291 7.203,-4.138 15.257,-6.207 24.16,-6.207 4.883,0 9.574,0.616 14.074,1.849 4.499,1.231 8.604,3.07 12.314,5.513 3.708,2.444 6.867,5.458 9.478,9.046 2.608,3.588 4.438,7.715 5.492,12.381 H 1.011 c -1.341,-6.911 -3.782,-13.096 -7.324,-18.555 -3.543,-5.458 -7.947,-10.091 -13.211,-13.899 -5.266,-3.808 -11.166,-6.702 -17.7,-8.683 -6.534,-1.981 -13.51,-2.972 -20.93,-2.972 -12.541,0 -23.694,2.817 -33.458,8.453 -9.766,5.634 -17.448,13.645 -23.049,24.035 -5.6,10.388 -8.4,22.715 -8.4,36.978 0,14.263 2.8,26.588 8.4,36.978 5.601,10.388 13.283,18.399 23.049,24.035 9.764,5.635 20.917,8.452 33.458,8.452 7.42,0 13.385,-0.99 19.919,-2.972 6.534,-1.981 12.433,-4.875 17.7,-8.683 5.264,-3.807 9.668,-8.43 13.211,-13.866 C -3.782,13.15 -1.341,6.955 0,0"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path112" />
-        </g>
-        <g
-           id="g114"
-           transform="translate(562.7174,190.0971)">
-          <path
-             d="m 0,0 c 0.3,4.47 1.53,8.69 3.67,12.66 2.5,4.64 6.07,8.41 10.73,11.32 4.66,2.9 10.19,4.35 16.59,4.35 5.82,0 10.87,-1.23 15.17,-3.7 4.29,-2.46 7.61,-5.82 9.95,-10.09 2.34,-4.26 3.51,-9.1 3.51,-14.54 z m 75.97,-6.51 c 0,8.98 -1.29,16.54 -3.88,22.68 -2.59,6.14 -6.07,11.08 -10.43,14.82 -4.36,3.74 -9.2,6.45 -14.51,8.12 -5.32,1.67 -10.7,2.51 -16.16,2.51 -9.44,0 -17.7,-2.12 -24.77,-6.36 C -0.84,31.01 -6.34,25.12 -10.271,17.58 -14.2,10.04 -16.16,1.34 -16.16,-8.52 c 0,-9.86 1.96,-18.5 5.889,-25.91 3.931,-7.42 9.541,-13.18 16.831,-17.3 7.3,-4.11 15.98,-6.17 26.07,-6.17 7.09,0 13.47,1.01 19.15,3.04 5.68,2.02 10.449,4.86 14.31,8.52 3.86,3.66 6.61,7.91 8.24,12.75 l 0.99,4.06 -16.52,-0.05 c -1.37,-3.34 -3.3,-6.13 -5.79,-8.36 -2.5,-2.24 -5.47,-3.91 -8.9,-5.02 -3.43,-1.1 -7.25,-1.66 -11.48,-1.66 -6.5,0 -12.2,1.31 -17.1,3.92 -4.91,2.61 -8.74,6.43 -11.49,11.47 -2.49,4.56 -3.85,10.05 -4.08,16.45 h 76.01 z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path116" />
-        </g>
-        <g
-           id="g118"
-           transform="translate(481.7372,256.8414)">
-          <path
-             d="m 0,0 c 0,4.88 3.274,8.133 8.331,8.133 5.058,0 8.487,-3.253 8.487,-8.133 0,-4.88 -3.568,-8.28 -8.487,-8.28 C 3.413,-8.28 0,-5.026 0,0 Z"
-             style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
-             id="path120" />
-        </g>
-      </g>
-    </g>
-  </g>
-</svg>


Test patch:
diff --git a/pandas/tests/series/methods/test_map.py b/pandas/tests/series/methods/test_map.py
index 84b60a2afe..384b7ce3dc 100644
--- a/pandas/tests/series/methods/test_map.py
+++ b/pandas/tests/series/methods/test_map.py
@@ -604,3 +604,27 @@ def test_map_kwargs():
     result = Series([2, 4, 5]).map(lambda x, y: x + y, y=2)
     expected = Series([4, 6, 7])
     tm.assert_series_equal(result, expected)
+
+
+def test_map_arg_as_kwarg():
+    with tm.assert_produces_warning(
+        FutureWarning, match="`arg` has been renamed to `func`"
+    ):
+        Series([1, 2]).map(arg={})
+
+
+def test_map_func_and_arg():
+    # `arg`is considered a normal kwarg that should be passed to the function
+    result = Series([1, 2]).map(lambda _, arg: arg, arg=3)
+    expected = Series([3, 3])
+    tm.assert_series_equal(result, expected)
+
+
+def test_map_no_func_or_arg():
+    with pytest.raises(ValueError, match="The `func` parameter is required"):
+        Series([1, 2]).map()
+
+
+def test_map_func_is_none():
+    with pytest.raises(ValueError, match="The `func` parameter is required"):
+        Series([1, 2]).map(func=None)