I have the following dataframe:
averageNumberOfOperationsPerPath id get post put delete
0 1.285714 84 12.0 4.0 1.0 1.0
1 1.266667 84 13.0 4.0 1.0 1.0
2 1.266667 84 13.0 4.0 1.0 1.0
3 3.333333 124 3.0 1.0 2.0 1.0
4 3.333333 124 3.0 1.0 2.0 1.0
I need all the different columns get, post, put, delete and there are a few more(I haven't mentioned here, the dataframe becomes too big for readability), under one column methods and other column value with their respective values.
Any help on how can I merge them to get the desired output while keeping the number of rows same.