You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same issue on groupby. To reproduce the issue:
import pandas as pd
from pandas.core.window.indexers import BaseIndexer
df = pd.DataFrame([[0, 1],[1, 20]], columns=["a", "b"])
# this should raise NotImplementedError (works in 1.0.2)
df.groupby(["a"]).rolling(window=BaseIndexer(),min_periods=1).min()
and count is an exception, it works with grouby rolling, this will raise:
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample, a copy-pastable example
Problem description
groupby().rolling()
does not use custom indexer supplied inwindow=
likely as a result of #34052 where aGroupbyRollingIndexer
is used instead.The output data is always the same as the input regardless of the windowing function.
1.0.5 does not have this behavior.
Expected Output
Output of
pd.show_versions()
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2
setuptools : 49.2.1.post20200802
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.14.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.17.0
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.50.1
The text was updated successfully, but these errors were encountered: