SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top