I've run into an issue that seems simple but I have been unable fix.
I want to find companies that are in a particular percentile in certain criteria.
For example, I want to see companies that have:
P/E ratio in the lowest 40% of their respective industry (Best P/E ratio),
Top 40% of industry in EPS growth and Rev Growth (TTM vs TTM 1 year ago),
Lowest 70% P/CF of industry (Most recent Fiscal Year)
etc.
Is there a simple function to calculate percentiles, or am I in over my head? I am new to Quantopian, but my Python abilities are adequate.
If this is too much to do as a beginner, could a similar method be done to screen for companies above/below an industry average for a given criteria?