I couldn't find a solution to my problem here and hope you could solve it. Here is my current dataframe:
| Index | Col_1_data | Col_2_data | Col_3_data | Col_1_new_data | Col_2_new_data | Col_3_new_data |
| 1 | a | d | g | j | m | p |
| 2 | b | e | h | k | n | q |
| 3 | c | f | i | l | o | r |
And the idea is to melt it so that it will look like this:
| Index | data | new_data | id_col |
| 1 | a | j | Col_1 |
| 2 | b | k | Col_1 |
| 3 | c | l | Col_1 |
| 1 | d | m | Col_2 |
| 2 | e | n | Col_2 |
| 3 | f | o | Col_2 |
....etc....
So make it a panel but without any ID column, rather a partial string that is the same per each column (e.g. Col_1, Col_2, etc.) Is there a way to do it 'pythonically' or do I need to loop and stack?