diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst index 6c36a6470f841a..7bd5b65ed8717f 100644 --- a/doc/source/user_guide/missing_data.rst +++ b/doc/source/user_guide/missing_data.rst @@ -186,6 +186,7 @@ Sum/prod of empties/nans The sum of an empty or all-NA Series or column of a DataFrame is 0. .. ipython:: python + :okwarning: pd.Series([np.nan]).sum() @@ -194,6 +195,7 @@ The sum of an empty or all-NA Series or column of a DataFrame is 0. The product of an empty or all-NA Series or column of a DataFrame is 1. .. ipython:: python + :okwarning: pd.Series([np.nan]).prod()