Skip to content

Commit 2109012

Browse files
silenced two warnings in the docs
1 parent c9f2bd1 commit 2109012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/missing_data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ The sum of an empty or all-NA Series or column of a DataFrame is 0.
190190
191191
pd.Series([np.nan]).sum()
192192
193-
pd.Series([], dtype="float64").sum()
193+
pd.Series([], dtype="float64", index=[]).sum()
194194
195195
The product of an empty or all-NA Series or column of a DataFrame is 1.
196196

197197
.. ipython:: python
198198
199199
pd.Series([np.nan]).prod()
200200
201-
pd.Series([], dtype="float64").prod()
201+
pd.Series([], dtype="float64", index=[]).prod()
202202
203203
204204
NA values in GroupBy

0 commit comments

Comments
 (0)