Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. grouped = df.groupby(['Region'])
  2. df1 = df.drop(grouped.get_group(('Southwest')).index).
  3.  
  4. grouped = df.groupby(['Region'])
  5. df1 = df.drop(grouped.get_group(('Southwest','Northwest')).index)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement