Skip to content

Commit fd9bc0c

Browse files
committed
linting fixes
1 parent adb225d commit fd9bc0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/arrays/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,10 +1442,14 @@ def _reduce(self, name: str, *, skipna: bool = True, **kwargs):
14421442
return meth(skipna=skipna, **kwargs)
14431443

14441444
def _reduce_with_wrap(self, name: str, *, skipna: bool = True, kwargs):
1445-
"""Calls ``_reduce`` and wraps the result in a ndarray/extensionArray.
1445+
"""Call ``_reduce`` and wrap the result in a ndarray/extensionArray.
14461446
14471447
This is used to control the returned dtype when doing reductions in DataFrames,
14481448
and ensures the correct dtype for e.g. ``DataFrame({"a": extr_arr2}).sum()``.
1449+
1450+
Returns
1451+
-------
1452+
ndarray orx ExtensionArray
14491453
"""
14501454
result = self._reduce(name, skipna=skipna, **kwargs)
14511455
return np.array([[result]])

0 commit comments

Comments
 (0)