Skip to content

Commit

Permalink
DOC: correct min_count param docstring (#19836)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuBaohe authored and jreback committed Feb 23, 2018
1 parent 572476f commit 7e9ac66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7855,7 +7855,7 @@ def _doc_parms(cls):
>>> pd.Series([np.nan]).prod()
1.0
>>> pd.Series([np.nan]).sum(min_count=1)
>>> pd.Series([np.nan]).prod(min_count=1)
nan
"""

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


Expand Down

0 comments on commit 7e9ac66

Please sign in to comment.