I try to combine two rows in dataframe into one
ID Value1 Value2
0 ID_1 NaN 2
1 ID_2 NaN 7
2 ID_1 5 NaN
3 ID_2 8 NaN
The result should be the following
ID Value1 Value2
1 ID_1 5 2
2 ID_2 8 7
Is it possible with a method of dataframe ?