From 284ca1ecbc49b2d4483c0baea888f284c5c23e16 Mon Sep 17 00:00:00 2001 From: Martin Winkel Date: Fri, 15 Nov 2019 02:12:03 +0100 Subject: [PATCH] silencing two warnings in the docs --- doc/source/user_guide/missing_data.rst | 2 ++ 1 file changed, 2 insertions(+) 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()