I have dataframe something like this
| ID | M001 | M002 | M003 | M004 |
|------|------|------|------|------|
| E001 | 3 | 4 | 3 | 2 |
| E002 | 4 | 5 | 5 | 3 |
| E003 | 4 | 3 | 5 | 4 |
And I want output in list but something like this for each unique ID
such E001, E002 i want list of their response in each M001, M002 and so on
My required output is different variable for different id lets say
E001_response = [["M001",3],["M002",4],["M003",3],["M004",2]]