Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/google search.py Secret

Created Apr 27, 2021
Embed
What would you like to do?
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