i got a DataFrame like this. df:
I apply the following function to df
df_new = df.groupby(pd.Grouper(key="longtime",freq="D")).agg({df.columns[1]: [np.max]})
df_new = pd.DataFrame(data= df_new)
print(df_new)
following you see the output of df_new. the DatFrame has 1 column. but i want the "longtime" and "amax" to be stored in 2 separate columns. how do I have to adjust the function of df_new to achieve this ?

