I need to convert a Pandas dataframe with multiple rows into one row.
Having the following dataframe.
key value id code
A 36.0 NWL 787501
B 38.0 NWL 787501
A 19.0 MOH 978462
B 25.5 MOH 978462
A 92.0 PPC 259280
B 73.7 PPC 259280
I'd like to convert the dataframe to the following format.
A B id code
36.0 38.0 NWL 787501
19.0 25.5 MOH 978462
92.0 73.7 PPC 259280