Python code to calculate Exponential Moving Average

In one of my previous tutorials, I explained you how to calculate Simple Moving Average. In this tutorial, I will explain how to calculate Exponential Moving Average.

Here also, I have used the same NIFTY data that I have used for calculating SMA in the previous tutorial.

However, after calculations, I see that my data is not matching with the data of groww. I need to find out why.