Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Column1 Column2 Column3
- 0 This Sushi is Awesome NaN NaN
- 1 NaN Id: 2261
- 2 NaN City: Tokyo
- 3 NaN Food: Positive
- 4 NaN Price: NaN
- 5 This food is really expensi... NaN NaN
- 6 NaN Id: 3`
- 7 NaN City: Osaka
- 8 NaN Food: Negative
- 9 NaN Price: Negative
- pivoted = data.pivot(index='Column1',columns='Column2', values='Column3')
- 0 Id City Food Price
- 1 This Sushi is Awesome 2261 Tokyo Positive NaN
- 2 This food is really expensi... 3 Osaka Negative Negative
Add Comment
Please, Sign In to add comment