Hi all,
I would like to know if it will be possible to spread my dataframe specifying rows for a specific column.
Every 3 rows i would like to spread my dataframe for all my columns and append a spread of the next 3 rows.
An example could be:
name of database: MODEL
ID A B C
ESF_Beta 1 4 9
ESF_Gamma 5 5 5
ESF_Alfa 7 9 1
GIN_Beta 3 2 8
GIN_Gamma 4 8 3
GIN_Alfa 2 1 7
Results dataframe:
ID A_Beta A_Gamma A_Alfa B_Beta B_Gamma B_Alfa C_Beta C_Gamma C_Alfa
ESF 1 5 7 4 5 9 9 5 1
GIN 3 4 2 2 8 1 8 3 7
Thanks a lot