print(df.dtypes)
df = df.set_index(['TRX_DATE'])
print(df)
currentdate = dt.date.today()
print(currentdate)
startdate = currentdate - pd.Timedelta(days=30)
print(startdate)
dflast30 = df.loc[startdate:currentdate]
print(dflast30)
dflast30 = dflast30.reset_index()
print(dflast30)
как нарезать фрейм данных с полем даты в качестве индекса?