Skip to content

Commit 7e9ac66

Browse files
ZhuBaohejreback
authored andcommitted
DOC: correct min_count param docstring (#19836)
1 parent 572476f commit 7e9ac66

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/core/generic.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -7855,7 +7855,7 @@ def _doc_parms(cls):
78557855
>>> pd.Series([np.nan]).prod()
78567856
1.0
78577857
7858-
>>> pd.Series([np.nan]).sum(min_count=1)
7858+
>>> pd.Series([np.nan]).prod(min_count=1)
78597859
nan
78607860
"""
78617861

@@ -7867,8 +7867,9 @@ def _doc_parms(cls):
78677867
78687868
.. versionadded :: 0.22.0
78697869
7870-
Added with the default being 1. This means the sum or product
7871-
of an all-NA or empty series is ``NaN``.
7870+
Added with the default being 0. This means the sum of an all-NA
7871+
or empty Series is 0, and the product of an all-NA or empty
7872+
Series is 1.
78727873
"""
78737874

78747875

0 commit comments

Comments
 (0)