We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 572476f commit 7e9ac66Copy full SHA for 7e9ac66
pandas/core/generic.py
@@ -7855,7 +7855,7 @@ def _doc_parms(cls):
7855
>>> pd.Series([np.nan]).prod()
7856
1.0
7857
7858
->>> pd.Series([np.nan]).sum(min_count=1)
+>>> pd.Series([np.nan]).prod(min_count=1)
7859
nan
7860
"""
7861
@@ -7867,8 +7867,9 @@ def _doc_parms(cls):
7867
7868
.. versionadded :: 0.22.0
7869
7870
- Added with the default being 1. This means the sum or product
7871
- 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
7872
+ Series is 1.
7873
7874
7875
0 commit comments