I have the following dataframe:
pp b pp b
5 0.001464 6 0.001853
5 0.001459 6 0.001843
Is there a way to unpivot columns with the same name into multiple rows?
This is the required output:
pp b
5 0.001464
5 0.001459
6 0.001853
6 0.001843