From the course: Introduction to Python: Learn How to Program Today with Python by Pearson
Unlock this course with a free trial
Join today to access over 25,400 courses taught by industry experts.
Find some statistics - Python Tutorial
From the course: Introduction to Python: Learn How to Program Today with Python by Pearson
Find some statistics
All right, before we finish off our analysis, let's look at trying to find a little bit about some statistics. So we saw in the box plot here, you know, you can kind of see that there might be different mean percentages or distributions over the different days or times or whatnot. So if we wanted to get the actual numbers for those, here's how you could do that. So we have the data frame, right? And then if you remember, we can say df.describe. OK, and that will give us the mean and the standard deviation min, different percentiles, and max, or different quartiles. And we've got some numeric columns here, total bill, tip, size, percent, and bill per person. So if we wanted to simplify that and group things, we could do this. Let's see, df.groupByDay.describe. Okay, so this will actually group all of the days together and then describe those, and then you can see the total bill, tip, percent. So there's a lot of stuff here. it's kind of hard to read. So one thing that we can do is…