This is my example dataframe:
Index Param1 Param2
A 1 2
A 3 4
B 1 3
B 4 Nan
C 2 4
What I would like to get is:
Index Param1 Param2 Param3 Param4
A 1 2 3 4
B 1 3 4
C 2 4
What would be the best way to achieve it using pandas? Thanks in advance for your help.