Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Pipeline Help : first filter and then compute.

Hi All

Can somebody give me a quick example of some "cross-sectional" calculation on specific stocks (selecting by filtering) using pipeline? There are some in-built functions like "rank","top" etc. but I want to apply some custom function.

For ex:

  1. Select top 500 stocks by market cap.
  2. Apply a transform func() on just 500 stocks. Let's say demean().

Thanks a lot!
Shiv