Hello!
how would I use pipeline to screen out everything except for one industry? For example, polymer companies or pharma?
the pipeline tutorials I've found give examples of everything BUT this, it seems.
Thanks!!
Hello!
how would I use pipeline to screen out everything except for one industry? For example, polymer companies or pharma?
the pipeline tutorials I've found give examples of everything BUT this, it seems.
Thanks!!
Maybe take a look at this post for ideas https://www.quantopian.com/posts/how-can-i-implement-specific-sectors-in-my-pipeline-as-a-filter
The Morningstar industry codes are here https://www.quantopian.com/help/fundamentals#industry-sector
So to filter for a specific industry, create a classifier using the .latest method then create a filter from that.
import quantopian.pipeline.data.morningstar as ms
drug_companies = ms.asset_classification.morningstar_industry_group_code.latest.element_of([20636])