Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Correlation between two stock in pipeline with a window size of N

How can I calculate correlation between two stock using the pipeline API from returns data with a historical look-back window size of N? I want to understand how RollingPearson works, so that I can do more interesting stuff myself.