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.

Data Analyst | Hacker | Financial Analyst | Freelancer | IIM MBA | Opensource | Democratize Knowledge |