Thank you for your kind words :)

If you are obtaining the data directly from yfinance, the data is in the required format.

If you are obtaining data from a csv file, usually index will be autogenerated, in that case you have to explicitly change the index to Date column and also convert Date to datetime format if it is not in that format.

You can try with the csv file in my github repo linked in the article.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store