We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f2bd1 commit 2109012Copy full SHA for 2109012
doc/source/user_guide/missing_data.rst
@@ -190,15 +190,15 @@ The sum of an empty or all-NA Series or column of a DataFrame is 0.
190
191
pd.Series([np.nan]).sum()
192
193
- pd.Series([], dtype="float64").sum()
+ pd.Series([], dtype="float64", index=[]).sum()
194
195
The product of an empty or all-NA Series or column of a DataFrame is 1.
196
197
.. ipython:: python
198
199
pd.Series([np.nan]).prod()
200
201
- pd.Series([], dtype="float64").prod()
+ pd.Series([], dtype="float64", index=[]).prod()
202
203
204
NA values in GroupBy
0 commit comments