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
From the course: Data Analysis with Python and Pandas
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
The Matplotlib API and the plot() method9m 33s
-
(Locked)
Challenge: Basic line chart49s
-
(Locked)
Solution: Basic line chart3m 1s
-
(Locked)
Chart titles3m 26s
-
(Locked)
Chart colors5m 13s
-
(Locked)
Line styles2m 1s
-
(Locked)
Chart legends and gridlines3m 51s
-
(Locked)
Chart styles4m 8s
-
(Locked)
Challenge: Stylized line chart1m 11s
-
(Locked)
Solution: Stylized line chart1m 21s
-
(Locked)
Subplots and figure size5m 28s
-
(Locked)
Challenge: Subplots1m 33s
-
(Locked)
Solution: Subplots2m 59s
-
(Locked)
Bar charts6m 13s
-
(Locked)
Grouped and stacked bar charts5m 9s
-
(Locked)
Challenge: Bar charts1m 11s
-
(Locked)
Solution: Bar charts2m 19s
-
(Locked)
Pie charts and scatterplots6m 52s
-
(Locked)
Challenge: Scatterplots1m
-
(Locked)
Solution: Scatterplots2m 10s
-
(Locked)
Histograms3m 46s
-
(Locked)
Challenge: Histograms33s
-
(Locked)
Solution: Histograms1m 18s
-
(Locked)
Saving plots and further exploration3m 41s
-
(Locked)
Key takeaways2m 12s
-
(Locked)
-
-
-
-
-