Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Industry relative factors in pipeline

What's the best way to calculate industry-relative factors in pipeline? eg. I grab the PE ratio for my stocks, then I want to rank the PE ratio within each industry.