Notebook error

Course Name: Momentum Trading Strategies, Section No: 5, Unit No: 3, Unit type: Notebook

AttributeError: 'Index' object has no attribute 'tz_localize'

Hi Arpan,



Yahoo finance is a third party library and is not maintained by QuantInsti. At times, downloading the data may give you errors due to changes in yahoo finance. 



In such cases, it is recommended to upgrade the yfinance package using pip install --upgrade yfinance. You can update the 'cell type' for the cell above cell 1 from 'Raw NBConvert' to a 'Code' cell. Then restart the kernel and run all of the following cells again.



We have updated the notebook to resolve this issue. Please bare in mind that the changes might take up to a few hours to reflect.



Thanks

Rushda