I have this table and I need to melt away this table to be like the expected table where I need to get the point name (a and b) from the column name and let the bq and progress columns melt.
type bq a bq b progress a progress b
P 1 1 1 2
Q 2 3 4 2
R 2 1 1 2
The expected result is as below:
type point bq progress
P a 1 1
P b 1 2
Q a 2 4
Q b 3 2
R a 2 1
R b 1 2
How can do it in python?