Created
August 15, 2018 13:13
-
-
Save johnsloper/e6783949bb4bc789a03a32e435593182 to your computer and use it in GitHub Desktop.
Using numpy to create a faster rolling windows for pandas.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great! Saved me a lot of time, thanks! :)
I guess you can even increase performance by using np.correlate instead of np.convolve. As the kernel-flip done by np.convolve is not needed for symmetric kernels.