From the course: Data Analysis with Python and Pandas

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Solution: Histograms

Solution: Histograms

- [Instructor] All right, everybody. Our solution code is up on the right. Let's go ahead and dive into the notebook. All right, so let's take a look at what happens if we just plot the histogram on our entire data series. So plot.hist. We will end up with a four series histogram. And so maybe we would set our alpha level equal to 0.3 and we can compare all the distributions in our data here. This is still a lot to really wrap our heads around. So oftentimes with distributional analyses, we might not want to compare more than two or three visually in this way. So if we use the lock method and just grab columns two and three, remember these labels are integers. We can go ahead and just plot the distributions for stores two and three. And we can see that store three has a much higher average distribution than store two. There's only a couple days where the sales of store two approach those of store three, and I can bet you that when store two is high, store three is much, much higher…

Contents