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 stumbled upon code where rolling() is called with window=0 but the code runs fine without error. No segfault occurred. I haven't figured out why it doesn't crash in my case. Just as warning to future users of older pandas versions: passing window=0 might silently produce wrong results without crash.
Uh oh!
There was an error while loading. Please reload this page.
pd.version == 0.22.0
Problem description
Attempting to perform an operation on a series.rolling with window=0
kills the kernel if running with jupyter.
causes a core dump if running directly from python.
free(): invalid next size (fast): 0x00007fffbfcc5040 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bfb)[0x7fe14e0b0bfb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76fc6)[0x7fe14e0b6fc6]
...
Expected Output
Should raise a ValueError instead of crashing.
The text was updated successfully, but these errors were encountered: