Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Country metric_count channel
  2. 0 Country1 123472 c1
  3. 1 Country1 159392 c2
  4. 2 Country2 14599 c3
  5. 3 Country2 17382 c4
  6.  
  7. df2 = df.set_index(["Country", "channel"])
  8.  
  9. metric_count
  10. Country channel
  11. Country1 category1 12347
  12. category2 159392
  13. category3 14599
  14. category4 17382
  15.  
  16. Country2 category1 1234
  17.  
  18. Country2 top category1 12355555
  19. top category2 159393
  20. top category3 16759
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement