Getting An Error while executing the Code Block below Earnings Calendar

Course Name: Getting Market Data: Stocks, Crypto, News & Fundamental, Section No: 7, Unit No: 3, Unit type: Notebook

 

While executing codeblock [6], the error  message props up : 
AttributeError: 'Ticker' object has no attribute 'get_earnings_dates'

Hi Milind,



There are times when Yahoo Finance might run into an error. As we have mentioned in the notebook, right before the code cell where we are importing all the libraries, you can see the code



"pip install --upgrade yfinance"



You can convert the cell from  'Raw NBConvert' to a 'Code' cell and run the cell.

Then restart the kernel and run all of the following cells again.



Hope this helps.