Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 27, 2021 09: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 amankharwal/cddd4ff13a961d36fd99a26457af1223 to your computer and use it in GitHub Desktop.
Save amankharwal/cddd4ff13a961d36fd99a26457af1223 to your computer and use it in GitHub Desktop.
data = TrendReq(hl='en-US', tz=360)
data.build_payload(kw_list=['Machine Learning'])
data = data.interest_over_time()
fig, ax = plt.subplots(figsize=(20, 15))
data['Machine Learning'].plot()
plt.style.use('fivethirtyeight')
plt.title('Total Google Searches for Machine Learning', fontweight='bold')
plt.xlabel('Year')
plt.ylabel('Total Count')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment