Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Last active April 20, 2019 19:58
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/bea92530ba3212d2b40f57f007f5b228 to your computer and use it in GitHub Desktop.
Save hamletbatista/bea92530ba3212d2b40f57f007f5b228 to your computer and use it in GitHub Desktop.
#if Macys' keyword position is lower, say 1 vs 6. It is ranking higher/better
macys_ranks_better = merged_df.query("Position_x < Position_y")
len(set(macys_ranks_better["Keyword"])) # we have 1075 better rankings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment