is it possible to change table structure in python by using pandas from this structure
Label | Text |
---|---|
True | Car |
True | Pool |
Fake | Play |
True | Music |
Into
Text | True | Fake |
---|---|---|
Car | 1 | 0 |
Pool | 1 | 0 |
Play | 0 | 1 |
Music | 1 | 0 |
is it possible to change table structure in python by using pandas from this structure
Label | Text |
---|---|
True | Car |
True | Pool |
Fake | Play |
True | Music |
Into
Text | True | Fake |
---|---|---|
Car | 1 | 0 |
Pool | 1 | 0 |
Play | 0 | 1 |
Music | 1 | 0 |