make the datetimeindex a column again and reste index code example Example: reset_index pandas df.reset_index(drop=True, inplace=True)