My API is serving datetime as \'2010-07-01T00:00:00.000Z\' , i have used the following code
for d in df[\'date\']: d.strftime(\'%Y-%m-%d\') df = df.set_index