From the course: Data Analysis with Python and Pandas

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Challenge: Scatterplots

Challenge: Scatterplots

- [Instructor] All right, so another email in from Joey. "Hi there, I was curious to see what stores tend to have high sales at the same time. Can you make a scatterplot of the relationship between store two and three sales? Once you've done that, color the dots by month to check if the relationship is different across time, thanks." If we take a look at a results preview, we can see two scatter plots have been created. One is uncolored by month. It just allows us to check the overall relationship, and the other is colored by month. So let's take a quick look at our notebook. All right, so let's go ahead and take a look at assignment number five. We just want to plot the relationships between stores two and three. We're going to be using stores_1234, the one that we just worked with. And for the color argument, we want to use stores_1234.index.month. So go ahead and use this here. We still don't know date parting yet, so I'll go ahead and provide that for you. And if you want, you can…

Contents