Turn of the Month Code

 Hello, 

I am trying to adjust to code to allow me to download and work with the most recent data of SPY but for some reason i am getting error. One of the biggest issue with some of the courses come from the fact you guys provide a set of data already pre-configured. This doesn't help at all  as you should be having  A-Z guidance or provide A-Z instruction on each Jupyter practice exercise. Simply dumpy the pre-confured dataset in the middle of the lab exercise doesn't help. 

Hey Pierre,



For our users to get a seamless experience, we try to keep minimal dependencies on third party libraries like yfinance. The pre-configured dataset used in the course is actually directly sourced from yfinance and used as it is in the notebook. We also have dedicated course that provides an end-to-end guide for getting data



Can you please paste the error that you are getting here? It would help us in resolving your query.



Thanks

Rushda

Thank you , I was able to figure out and fix the issue by :

1- Removing the "delimiter=';'

Read SPY prices

#spy_prices = pd.read_csv('…/data_modules/spy_daily_1997_2023_1123_1.csv', delimiter=';')

spy_prices = pd.read_csv('…/data_modules/spy_daily_1997_2023_1123_1.csv')



spy_prices.tail()



2- Changing ' Adjusted Close' used in the Jupyter lab with 'Adj Close' as downloaded from yfinance

It's great to know that you were able to resolve this all by yourself!



Also, we appreciate your feedback on Jupyter Notebook instructions we will be taking this in consideration to ensure a seamless experience for all our users. If you have any other feedback for us, we'd be happy to hear from you!