Skip to content

Commit 208eb0b

Browse files
fixup! Fix pandas.api.extensions.ExtensionArray._reduce
1 parent c850e08 commit 208eb0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2049,11 +2049,11 @@ def _reduce(
20492049
>>> pd.array([1, 2, 3])._reduce("sum")
20502050
6
20512051
>>> pd.array([1, 2, 3])._reduce("mean")
2052-
2.0
2052+
2
20532053
>>> pd.array([1, 2, 3])._reduce("median")
20542054
2
20552055
>>> pd.array([1, 2, 3])._reduce("mean", keepdims=True)
2056-
array([2.0])
2056+
array([2])
20572057
>>> pd.array([1, np.nan, 2, np.nan])._reduce("sum", skipna=False)
20582058
nan
20592059
>>> pd.array([1, np.nan, 2, np.nan])._reduce("sum", skipna=True)

0 commit comments

Comments
 (0)