Skip to content

Commit 79df9db

Browse files
committed
fix comments
1 parent 99d034e commit 79df9db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v2.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Reductions maintain extension dtypes
2020
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2121

2222
In previous versions of pandas, the results of DataFrame reductions
23-
(:meth:`DataFrameG.sum` :meth:`DataFrame.mean` etc.) has numpy dtypes even when the DataFrames
23+
(:meth:`DataFrame.sum` :meth:`DataFrame.mean` etc.) has numpy dtypes even when the DataFrames
2424
were of extension dtypes. Pandas can now keep the dtypes when doing reductions over Dataframe
2525
columns with a common dtype (:issue:`52788`).
2626

pandas/core/arrays/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ def _reduce_and_wrap(self, name: str, *, skipna: bool = True, kwargs):
14611461
Length: 1, dtype: Int64
14621462
"""
14631463
result = self._reduce(name, skipna=skipna, **kwargs)
1464-
return np.array([[result]])
1464+
return np.array([result])
14651465

14661466
# https://github.com/python/typeshed/issues/2148#issuecomment-520783318
14671467
# Incompatible types in assignment (expression has type "None", base class

0 commit comments

Comments
 (0)