New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: rolling with axis=1, win_type=, and center=True raises ValueError #46135
Comments
mvashishtha
added
Bug
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Feb 23, 2022
mroeschke
added
Window
rolling, ewma, expanding
and removed
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Feb 24, 2022
jyuv
pushed a commit
to jyuv/pandas
that referenced
this issue
Mar 7, 2022
jyuv
pushed a commit
to jyuv/pandas
that referenced
this issue
Mar 7, 2022
jyuv
pushed a commit
to jyuv/pandas
that referenced
this issue
Mar 8, 2022
4 tasks
jyuv
pushed a commit
to jyuv/pandas
that referenced
this issue
May 2, 2022
mroeschke
pushed a commit
that referenced
this issue
May 6, 2022
* TST: added test for rolling with centering=True and axis=1 (#46135) * BUG: fixed bug of rolling with centering=True and axis=1 (#46135) * DOC: fixed bug of rolling with centering=True and axis=1 (#46135) * Fixes from pre-commit [automated commit] * TST: adapted test_rolling_center_axis_1 to support check_dtype=True * Fixes from pre-commit [automated commit] * TST: move test_rolling_center_axis_1 from test_rolling.py to test_win_type.py * Fixes from pre-commit [automated commit] * DOC: moved bug mention to rolling doc section and specify conditions (#46135) Co-authored-by: Yuval <yuval,jacoby1@mail.huji.ac.il>
yehoshuadimarsky
pushed a commit
to yehoshuadimarsky/pandas
that referenced
this issue
Jul 13, 2022
…-dev#46265) * TST: added test for rolling with centering=True and axis=1 (pandas-dev#46135) * BUG: fixed bug of rolling with centering=True and axis=1 (pandas-dev#46135) * DOC: fixed bug of rolling with centering=True and axis=1 (pandas-dev#46135) * Fixes from pre-commit [automated commit] * TST: adapted test_rolling_center_axis_1 to support check_dtype=True * Fixes from pre-commit [automated commit] * TST: move test_rolling_center_axis_1 from test_rolling.py to test_win_type.py * Fixes from pre-commit [automated commit] * DOC: moved bug mention to rolling doc section and specify conditions (pandas-dev#46135) Co-authored-by: Yuval <yuval,jacoby1@mail.huji.ac.il>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
I start with a dataframe with a single value, 0. Rolling over columns with the above parameters gives:
Rolling over rows with
axis=1
instead givesValueError: Requested axis is larger then no. of argument dimensions
:Show stack trace
Expected Behavior
I expect rolling over axis 1 to give the same result as rolling over axis 0 for this single-element dataframe.
Installed Versions
INSTALLED VERSIONS
commit : b4e578d
python : 3.9.10.final.0
python-bits : 64
OS : Darwin
OS-release : 21.3.0
Version : Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.5.0.dev0+122.gb4e578db85
numpy : 1.22.1
pytz : 2021.3
dateutil : 2.8.2
pip : 22.0.3
setuptools : 60.8.2
Cython : 0.29.27
pytest : 7.0.0
hypothesis : None
sphinx : 4.4.0
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.9.3
jinja2 : 3.0.3
IPython : 8.0.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
fsspec : 2022.01.0
gcsfs : None
matplotlib : 3.5.1
numba : None
numexpr : 2.8.1
odfpy : None
openpyxl : 3.0.9
pandas_gbq : 0.16.0
pyarrow : 6.0.1
pyreadstat : None
pyxlsb : None
s3fs : 2022.01.0
scipy : 1.7.3
sqlalchemy : 1.4.31
tables : 3.7.0
tabulate : None
xarray : 0.20.2
xlrd : 2.0.1
xlwt : None
zstandard : None
The text was updated successfully, but these errors were encountered: