I have a dataframe with the following structure:
Name | Value_1 | Value_2 |
---|---|---|
John | 20 | 30 |
Barry | 5 | 10 |
and i would like something as:
Name | Index | Value |
---|---|---|
John | Value_1 | 20 |
John | Value_2 | 30 |
Barry | Value_1 | 5 |
Barry | Value_2 | 10 |
Does pandas have any method in order to make this transformation ?
Thanks in advance!!