Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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