Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Created April 20, 2019 18:46
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/983ef27973d8633dda2a355c86b62a53 to your computer and use it in GitHub Desktop.
Save hamletbatista/983ef27973d8633dda2a355c86b62a53 to your computer and use it in GitHub Desktop.
database="us"
macys="macys.com"
brand="Tommy Hilfiger"
macys_df = get_seo_branded_data(brand, macys, export_columns="Ph,Po,Tg") # only keyword, position and traffic
#we explicitly convert numbers to integers to be able to perform arithmetic operations later
convert_dict = {'Keyword': str, 'Position': int, 'Traffic': int}
macys_df = macys_df.astype(convert_dict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment