Course Content
Projeccts
RFM Analysis https://statso.io/rfm-analysis-case-study/ Stock Market Performance Analysis https://statso.io/stock-market-performance-case-study/ B2B Courier Charges Accuracy Analysis https://statso.io/b2b-ecommerce-fraud-case-study/ User Engagement Analysis https://statso.io/bounce-rate-case-study/ Customer Lifetime Value Analysis https://statso.io/customer-lifetime-value-analytics-case-study/ Supply Chain Analysis https://statso.io/supply-chain-analysis-case-study/ Demand & Supply Analysis https://statso.io/demand-and-supply-case-study/ Recession Analysis https://statso.io/recession-case-study/ Store Sales & Profit Analysis https://www.kaggle.com/datasets/vivek468/superstore-dataset-final Exploratory Data Analysis https://statso.io/instagram-reach-analysis-case-study/ Accelerometer Data Analysis https://statso.io/accelerometer-data/ User Funnel Analysis https://statso.io/user-funnels-case-study/ Algorithmic Trading https://thecleverprogrammer.com/2021/12/21/get-stock-price-data-using-python/ A/b Testing https://statso.io/a-b-testing-case-study/ T20 World Cup 2022 Analysis https://statso.io/t20-world-cup-2022-dataset/ Twitter Timeline in the Stock Market Analysis https://statso.io/twitter-stock-market-analysis-case-study/ Instagram Reach Analysis https://statso.io/instagram-reach-analysis-case-study/ Screen Time Analysis https://statso.io/screen-time-analysis-case-study/ Stock Market Analysis https://thecleverprogrammer.com/2021/12/21/get-stock-price-data-using-python/ Smartwatch Data Analysis https://thecleverprogrammer.com/2022/05/31/smartwatch-data-analysis-using-python/ Virat Kohli Performance Analysis https://thecleverprogrammer.com/2022/05/10/virat-kohli-performance-analysis-using-python/ Google Search Analysis https://thecleverprogrammer.com/2021/04/27/google-search-analysis-with-python/ Survey Analysis https://www.kaggle.com/datasets/kulturehire/understanding-career-aspirations-of-genz Social Progress Index Analysis https://thecleverprogrammer.com/2022/12/26/social-progress-index-analysis-using-python/ Career Aspirations Survey Analysis https://www.kaggle.com/datasets/kulturehire/understanding-career-aspirations-of-genz iPhone Sales Analysis https://www.kaggle.com/datasets/komalkhetlani/apple-iphone-data Diamond Price Analysis https://www.kaggle.com/datasets/shivam2503/diamonds Covid-19 Impacts Analysis https://www.kaggle.com/datasets/shashwatwork/impact-of-covid19-pandemic-on-the-global-economy IPL 2022 Analysis https://thecleverprogrammer.com/2022/05/03/ipl-2022-analysis-using-python/ Ukraine Vs Russia: Twitter Sentiment Analysis https://www.kaggle.com/datasets/towhidultonmoy/russia-vs-ukraine-tweets-datasetdaily-updated Waiter Tips Analysis and Prediction https://thecleverprogrammer.com/2022/02/01/waiter-tips-prediction-with-machine-learning/ Flipkart Reviews Sentiment Analysis https://thecleverprogrammer.com/2022/02/15/flipkart-reviews-sentiment-analysis-using-python/ Time Series Analysis https://thecleverprogrammer.com/2022/01/17/time-series-analysis-using-python/ TikTok Reviews Sentiment Analysis https://thecleverprogrammer.com/2022/04/12/tiktok-reviews-sentiment-analysis-using-python/ Tinder Reviews Sentiment Analysis https://thecleverprogrammer.com/2022/05/24/tinder-reviews-sentiment-analysis-using-python/ Uber Trips Analysis https://thecleverprogrammer.com/2021/04/21/uber-trips-analysis-using-python/ WhatsApp Chats Analysis https://thecleverprogrammer.com/2021/04/09/whatsapp-chat-analysis-with-python/ Water Quality Analysis https://thecleverprogrammer.com/2021/08/19/water-quality-analysis/ Squid Game Sentiment Analysis https://thecleverprogrammer.com/2021/11/03/squid-game-sentiment-analysis-using-python/ Twitter Sentiment Analysis https://thecleverprogrammer.com/2021/09/13/twitter-sentiment-analysis-using-python/ Movie Rating Analysis for Beginners https://thecleverprogrammer.com/2021/09/22/movie-rating-analysis-using-python/ Worldwide Billionaires Analysis https://thecleverprogrammer.com/2021/06/24/billionaires-analysis-with-python/ Unemployment Analysis https://thecleverprogrammer.com/2021/07/12/unemployment-analysis-with-python/ WhatsApp Chats Sentiment Analysis https://thecleverprogrammer.com/2021/06/06/whatsapp-chat-sentiment-analysis-using-python/ Covid-19 Vaccine Analysis https://thecleverprogrammer.com/2021/04/13/covid-19-vaccines-analysis-with-python/ Financial Budget Analysis https://thecleverprogrammer.com/2021/04/05/financial-budget-analysis-with-python/ Best Streaming Service Analysis https://thecleverprogrammer.com/2021/01/21/best-streaming-service-analysis-with-python/ Data Science Project on Birth Rate Analysis https://thecleverprogrammer.com/2020/05/08/birth-rate-analysis/ Data Science Project on Time Series https://thecleverprogrammer.com/2020/05/08/data-science-project-on-time-series/ Data Science Project on Area and Population https://thecleverprogrammer.com/2020/05/09/data-science-project-on-area-and-population/ Amazon Product Reviews Sentiment Analysis https://thecleverprogrammer.com/2021/07/20/amazon-product-reviews-sentiment-analysis-with-python/ Hotel Reviews Sentiment Analysis https://thecleverprogrammer.com/2021/07/03/hotel-reviews-sentiment-analysis-with-python/ Google Play Store Sentiment Analysis https://thecleverprogrammer.com/2021/05/31/google-play-store-sentiment-analysis-using-python/ Instagram Reach Analysis https://thecleverprogrammer.com/2022/03/22/instagram-reach-analysis-using-python/ Amazon Alexa Reviews Sentiment Analysis https://thecleverprogrammer.com/2021/06/12/amazon-alexa-reviews-sentiment-analysis-using-python/ Real-time Sentiment Analysis https://thecleverprogrammer.com/2021/03/09/real-time-sentiment-analysis-using-python/ Customer Personality Analysis https://thecleverprogrammer.com/2021/02/08/customer-personality-analysis-with-python/ Netflix Data Analysis https://thecleverprogrammer.com/2021/01/16/netflix-data-analysis-with-python/ Covid-19 Vaccine Sentiment Analysis https://thecleverprogrammer.com/2021/01/11/covid-19-vaccine-sentiment-analysis/ Cohort Analysis https://thecleverprogrammer.com/2021/01/08/cohort-analysis-with-python/
0/12
Python Project for Data Analytics
About Lesson

Approximately 3.5 billion searches are performed on Google daily, which means that approximately 40,000 searches are performed every second on Google. So Google search is a great use case for analyzing data based on search queries. With that in mind, in this article, I will walk you through the task of Google search analysis with Python.

 

Google Search Analysis with Python

Google doesn’t give much access to the data about daily search queries, but another application of google known as Google Trends can be used for the task of Google search analysis. Google Trends provides an API that can be used to analyze the daily searches on Google. This API is known as pytrends, you can easily install it in your systems by using the pip command; pip install pytrends.

I hope you now have easily installed the pytrends library in your systems, now let’s get started with the task of Google search analysis by importing the necessary Python libraries:

 
 
 

Here I will be analyzing the Google search trends on the queries based on “Machine Learning”, so let’s create a DataFrame of the top 10 countries which search for “Machine Learning” on Google:

trends.build_payload(kw_list=[“Machine Learning”])
data = trends.interest_by_region()
data = data.sort_values(by=”Machine Learning”, ascending=False)
data = data.head(10)
print(data)

Machine Learning
geoName                      
Singapore                 100
India                      73
St. Helena                 73
Tunisia                    53
Hong Kong                  51
Pakistan                   51
Sri Lanka                  50
Nepal                      47
South Korea                44
Kenya                      40

So, according to the above results, the search queries based on “Machine learning” are mostly done in Singapore. We can also visualize this data using a bar chart:

 
 
 
Google search analysis using Python

So as we all know that Machine Learning has been the focus of so many companies and students for the last 3-4 years, so let’s have a look at the trend of searches to see how the total search queries based on “Machine Learning” increased or decreased on Google:

 
 
 
trends on google about machine learning

Conclusion

So we can see a huge increase in the searches about “machine learning” on Google in 2022. This is how we can analyze Google searches based on any keyword. A business can perform Google search analysis to understand what people are looking for on Google at any given time. I hope you liked this article on Google search analysis with Python. Feel free to ask your valuable questions in the comments section below.