Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index Country Count
- 0 'Canada' 10
- 'Italy' 20
- 1 'Indonesia' 5
- 'Canada' 2
- 2 'Italy' 14
- Canada Indonesia Italy
- 0 10 0 20
- 1 2 5 0
- 2 0 0 14
- df = df['Count'].unstack()
- df = s.unstack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement