Set index equal to field 'TRX_DATE' in dataframe `df`,df = df.set_index(['TRX_DATE'])