Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. >>> Left = pandas.DataFrame({'Name':['Abigail','Benny','Charlie'],'Age':[25,30,45]})
  2. >>> Right = pandas.DataFrame({'Name':['Charlie','Devon','Ellen'],'Age':[45,50,55]})
  3. >>> Left.merge(Right,how='left')
  4. Age Name
  5. 0 25 Abigail
  6. 1 30 Benny
  7. 2 45 Charlie
  8.  
  9. What i want to return is the following
  10. Age Name
  11. 0 25 Abigail
  12. 1 30 Benny
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement