Hi, I'm planning to test different feature selection methods on the 600+ metrics available in the Fundamentals data. Hence, I would like to add all of the fields to my pipeline. Given that there are over 600 of them, the ideal way would be to do this iteratively. However, based on the example code I've seen so far, I have not found a way to do so.
The only way I know how to add fields from the Fundamentals data to my pipeline so far is like in the following code, which adds the first two fields from the Fundamentals Data Reference.
from quantopian.research import run_pipeline
from quantopian.pipeline import Pipeline
from quantopian.pipeline.data import Fundamentals
def make_pipeline():
return Pipeline(
columns={
'cannaics' : Fundamentals.cannaics.latest,
'financial_health_grade' : Fundamentals.financial_health_grade.latest,
}
)
result = run_pipeline(make_pipeline(),'2017-11-21','2017-11-21')
result.head()
It would be a bit ridiculous to add the remaining 600+ fields from Fundamentals as 600+ individual lines, so I'm wondering if there's a way to do this iteratively?
Any advice would be appreciated, thanks!