BUG: skipna keyword no longer accepted by rolling().sum() #55272
Labels
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Usage Question
Window
rolling, ewma, expanding
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
At precvious version, the rolling.sum can use the keyword skipna to exclude nan when calculating, but in this version the parameter have benn removed and the funcation can not work even use .apply(np.nansum)
Expected Behavior
import pandas as pd
import numpya as np
a = pd.Series([1,2,3,4,5,6])
a.iloc[3] = np.nan
print(a.rolling(2).sum(skipna=True))
Installed Versions
pandas : 2.1.0
numpy : 1.25.2
pytz : 2023.3.post1
dateutil : 2.8.2
setuptools : 68.2.0
pip : 23.2.1
Cython : 3.0.2
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : None
pandas_datareader : None
bs4 : None
bottleneck : None
dataframe-api-compat: None
fastparquet : 2023.8.0
fsspec : 2023.9.2
gcsfs : None
matplotlib : 3.8.0
numba : None
numexpr : 2.8.6
odfpy : None
openpyxl : 3.1.2
pandas_gbq : None
pyarrow : 13.0.0
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.11.2
sqlalchemy : None
tables : 3.8.0
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: