I have data like this in dataframe
| Text | Label1 | Label2 | label3 | label4 | Labels |
|---|---|---|---|---|---|
| Hello my name is john | 1 | 0 | 1 | 0 |
and I want to fill the labels column based on the ones and zeros to be like this
| Text | Label1 | Label2 | label3 | label4 | Labels |
|---|---|---|---|---|---|
| Hello my name is john | 1 | 0 | 1 | 0 | ['Label1','Label3'] |
How can I do in python?