I have a dataframe in Python 3.9 / Pandas
d = {'date': ['01/01/2022', '02/01/2022','03/01/2022','04/01/2022'], 'room1': [10,11,27,65], 'room2': [5,6,8,9], 'room3': [21,25,41,22], 'room4': [14,21,54,13]}
df_test = pd.DataFrame(data=d)
df_test
OUTPUT
I'd like to have a new dataframe with the following results
I try groupby, pivot...
How would you do it pandas?