I'm relatively new to python and in need of your help. I have a long DataFrame in which one column is a succession of dates. I used a pd.datetime function to translate all this column to a datetime format, as it is easier to sort them by date. I want to save this DataFrame, transformed and sorted to gain some time on the future data processing. Do you have an idea on how I should manage that issue ? My code so far is this :
import pandas as pd
df1['DATE'] = pd.to_datetime(df1.DATE)
df1 = df1.sort_values(by=['NAME', 'DATE'])
df1.to_csv('df1_sorted.csv')