Please update Lecture 17 to reflect changes that have been made to accessing fundamentals data. When i run the code below from the lecture:
# Get most recent free cash flow, operating cash flow, and total revenue data
fundamentals = init_fundamentals()
today = pd.datetime.today()
data = get_fundamentals(query(fundamentals.cash_flow_statement.free_cash_flow,
fundamentals.cash_flow_statement.operating_cash_flow,
fundamentals.income_statement.total_revenue,)
.filter(fundamentals.valuation.market_cap > 1e8, # Filter by market cap & industry
fundamentals.company_reference.industry_template_code == 'T'), today).T
I'm getting the following error message:
ValueErrorTraceback (most recent call last)
in ()
3
4 # Get most recent free cash flow, operating cash flow, and total revenue data
----> 5 fundamentals = init_fundamentals()
6 today = pd.datetime.today()
7 data = get_fundamentals(query(fundamentals.cash_flow_statement.free_cash_flow,
/build/src/qexec_repo/qexec/research/api.py in init_fundamentals()
63 def init_fundamentals():
64 raise ValueError(
---> 65 'The init_fundamentals
method has been removed. To use fundamental'
66 ' data in your notebooks and algorithms, use Pipeline.\n'
67 'See: https://www.quantopian.com/help#fundamental-data',
ValueError: The init_fundamentals
method has been removed. To use fundamental data in your notebooks and algorithms, use Pipeline.
See: https://www.quantopian.com/help#fundamental-data
I'm still learning and I don't know how to reference the fundamentals data using Pipeline yet. Could you please assist. Thank you