Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Created April 20, 2019 18:49
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/d201613f508e55ebe6bc11eec64e09ea to your computer and use it in GitHub Desktop.
Save hamletbatista/d201613f508e55ebe6bc11eec64e09ea to your computer and use it in GitHub Desktop.
database="us"
tommy="usa.tommy.com"
brand="Tommy Hilfiger"
tommy_df = get_seo_branded_data(brand, tommy, 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}
tommy_df = tommy_df.astype(convert_dict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment