-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DataFrame.rolling causes Kernel died, restart #22590
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
Comments
Unfortunately this is lacking some crucial information to help troubleshoot. Please refer to the pandas contributing guide on bug reports: https://pandas.pydata.org/pandas-docs/stable/contributing.html#bug-reports-and-enhancement-requests Specifically, we need a minimally reproducible example which highlights the issue |
@WillAyd , the example has been updated with a reproducible example, that caused the issue. |
Thanks for the code update. In the future please also use syntax highlighting (I've edited for you for now). This ran fine for me on master. Can you try there and if that doesn't work please update your original post with the output of |
That works for me as well. Could you post |
Installed pandas through conda. INSTALLED VERSIONScommit: None pandas: 0.23.4 |
This does reproduce for me on Windows - I'll take a look. Different path than that other rolling bug, but otherwise suspiciously similar. |
@WillAyd , the same Kernel issue occurs using pandas 0.23.2 and 0.23.3. The code runs successfully using pandas 0.20.3. |
This is (somehow) fixed on master for Windows. I built both it add 0.23.4 from source with the same windows toolchain and works/doesn't. Will at least want a confirming test |
Do you mean it doesn't work? Because I built from source and I can't confirm that the issue is fixed. Here's my versions: INSTALLED VERSIONScommit: None pandas: 0.23.4 but instead of getting "Kernel died, restarting." I get a segmentation fault |
I tried this on windows. Using pandas 0.23.1 the kernel dies and I'm thrown out to the command line. Using Pandas master everything functions as expected for me. Can anyone affirm, that this is not present in master? Details on my 0.23.1 run:
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.6.final.0
python-bits: 32
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.1 |
I'm not sure I'm doing this exactly right but I tried it on both 0.23.4 and built from source on master and it worked on both runs. These are my versions: For 0.23.4 INSTALLED VERSIONScommit: None pandas: 0.23.4 and from source: INSTALLED VERSIONScommit: 1c500fb pandas: 0.24.0.dev0+585.g1c500fb7b The only difference I notice is that from source
whereas in 0.23.4
Not sure exactly why there's a difference but it could be related to the issue? Either way both run fine without crashing on mine. |
Was there any consensus on this? I'm not sure how to run it on master (not fully knowledgeable on git yet). I've only run it from conda. |
Tried this yet again and it broke (kerned died) when using pandas 0.23.4 on conda. |
I'm running into this issue as well. Does anyone know a workaround? |
I had the same problem as you. I tried to use the pandas.core.window.Rolling.apply function as follows. and it worked well. |
Thanks for the work around! Though it is a little slower than the .agg('func') this is working for me as well. |
: ) |
Description
I have a dataframe with a Datetime index, and pandas 0.23.4 causes a Kernel died, restarting notification when using DF.rolling with a specified window as a string (i.e. '2D'). This worked in previous versions of pandas (at least 0.21 and 0.20). Any advice on this bug/issue would be great!
Code example
Result:
Kernel died, restarting
Pandas 0.23.4 documentation
The pandas 0.23.4 documentation shows the window can be a string:
df.rolling('2s').sum()
The text was updated successfully, but these errors were encountered: