Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #Create a column for storage
  2. df["y_exists"] = ""
  3.  
  4. #Here is a loop that always returns FALSE
  5. if df.x in df.y:
  6. df.x_exists="TRUE"
  7. else:
  8. df.x_exists="FALSE"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement