I have a dataframe with 5min values and I want to downsample it to 30min using the highest value? It is a price dataframe and I need to know the highest prices by time.
I tried
df = df.resample(â30Tâ).max()
And it returns me the last value instead of the highest.