Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Index Country Count
  2. 0 'Canada' 10
  3. 'Italy' 20
  4. 1 'Indonesia' 5
  5. 'Canada' 2
  6. 2 'Italy' 14
  7.  
  8. Canada Indonesia Italy
  9. 0 10 0 20
  10. 1 2 5 0
  11. 2 0 0 14
  12.  
  13. df = df['Count'].unstack()
  14.  
  15. df = s.unstack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement