Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'])})
- score1 score2
- a 1 2
- b 2 1
- c 3 8
- d 4 9
- e 5 3
- pd.groupby(['score1', 'score2'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement