Skip to content

Commit 494f1b0

Browse files
committed
format
1 parent 5a60088 commit 494f1b0

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ doc/source/savefig/
143143
/.pyodide-xbuildenv-*
144144

145145
local.py
146-
.venv/
146+
.venv/

doc/source/reference/extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ objects.
5858
api.extensions.ExtensionArray.isin
5959
api.extensions.ExtensionArray.isna
6060
api.extensions.ExtensionArray.ravel
61-
api.extensions.ExtensionArray.map
61+
api.extensions.ExtensionArray.map
6262
api.extensions.ExtensionArray.repeat
6363
api.extensions.ExtensionArray.searchsorted
6464
api.extensions.ExtensionArray.shift

pandas/core/arrays/base.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,9 +2516,12 @@ def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs):
25162516

25172517
return arraylike.default_array_ufunc(self, ufunc, method, *inputs, **kwargs)
25182518

2519-
def map(self, mapper,
2520-
na_action: Literal["ignore"] | None = None,
2521-
preserve_dtype: bool = False):
2519+
def map(
2520+
self,
2521+
mapper,
2522+
na_action: Literal["ignore"] | None = None,
2523+
preserve_dtype: bool = False,
2524+
):
25222525
"""
25232526
Map values using an input mapping or function.
25242527

pandas/core/arrays/masked.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,9 +1395,12 @@ def max(self, *, skipna: bool = True, axis: AxisInt | None = 0, **kwargs):
13951395
)
13961396
return self._wrap_reduction_result("max", result, skipna=skipna, axis=axis)
13971397

1398-
def map(self, mapper,
1399-
na_action: Literal["ignore"] | None = None,
1400-
preserve_dtype: bool = False):
1398+
def map(
1399+
self,
1400+
mapper,
1401+
na_action: Literal["ignore"] | None = None,
1402+
preserve_dtype: bool = False,
1403+
):
14011404
"""See ExtensionArray.map."""
14021405
result = map_array(self.to_numpy(), mapper, na_action=na_action)
14031406
if preserve_dtype:

0 commit comments

Comments
 (0)