I am trying to Unpivot columns and get 1 attributes and 2 value from a pandas dataframe, could anyone help me on this?
original data:
id Jan-Value1 Jan-Value2 Feb-Value1 Feb-Value2
1 1 10 2 15
2 0 5 3 20
desire output:
id Month Value1 Value2
1 Jan 1 10
1 Feb 2 15
2 Jan 0 5
2 Feb 3 20