Guest User

Untitled

a guest
Jan 22nd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Column1 Column2 Column3
  2. 0 This Sushi is Awesome NaN NaN
  3. 1 NaN Id: 2261
  4. 2 NaN City: Tokyo
  5. 3 NaN Food: Positive
  6. 4 NaN Price: NaN
  7. 5 This food is really expensi... NaN NaN
  8. 6 NaN Id: 3`
  9. 7 NaN City: Osaka
  10. 8 NaN Food: Negative
  11. 9 NaN Price: Negative
  12.  
  13. pivoted = data.pivot(index='Column1',columns='Column2', values='Column3')
  14.  
  15. 0 Id City Food Price
  16. 1 This Sushi is Awesome 2261 Tokyo Positive NaN
  17. 2 This food is really expensi... 3 Osaka Negative Negative
Add Comment
Please, Sign In to add comment