Advertisement
Guest User

Untitled

a guest
May 31st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. test = pandas.DataFrame({'score1' : pd.Series([1, 2, 3, 4, 5], index=['a', 'b', 'c', 'd', 'e']), 'score2' : pd.Series([2, 1, 8, 9, 3], index=['a', 'b', 'c', 'd', 'e'])})
  2.  
  3. score1 score2
  4. a 1 2
  5. b 2 1
  6. c 3 8
  7. d 4 9
  8. e 5 3
  9.  
  10. pd.groupby(['score1', 'score2'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement