Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Last active April 20, 2019 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamletbatista/6a60cec06291aad758903a5a6eb8836b to your computer and use it in GitHub Desktop.
Save hamletbatista/6a60cec06291aad758903a5a6eb8836b to your computer and use it in GitHub Desktop.
#if Tommy's keyword position is lower, say 1 vs 6. It is ranking higher/better
tommy_ranks_better = merged_df.query("Position_x > Position_y")#.groupby("Keyword")
len(set(tommy_ranks_better["Keyword"])) # we have 3173 better rankings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment