From the course: Python for Marketing (2019)

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Visualizing Google Trends data

Visualizing Google Trends data - Python Tutorial

From the course: Python for Marketing (2019)

Visualizing Google Trends data

- [Instructor] In this video, you are going to visualize Google Trends data. To do that, we need to pass the trends data DataFrame to the Pandas .plot function. We're going to pass a secondary Y axis, which is seo agency. Chosen that because I know that that data is much greater than all of the other columns' data. So it dwarfs it when it's on the same axis. And we're going to pass a custom figure size of 15 and five, so it's going to be rectangular. We pass that we can see the two axis. The seo agency is on the right here and it's trending up the way, but what if we wanted to choose to look at this data as something to invest in? What is the cumulative sum of this data if we were to rank and chase those keywords? Well to do that, we pass that DataFrame again. Then we apply the function cumsum, which will calculate the cumulative sum of that data and then we again plot it, and again, I always pass a custom figsize and…

Contents