WEBVTT

00:02.920 --> 00:08.940
Had it come to the penthouse group by a section so group operations at one of the most powerful data

00:08.940 --> 00:15.480
analysis tools and pandas and the functionality and flexibility is almost unlimited.

00:15.480 --> 00:16.860
And that's why group bias.

00:16.860 --> 00:18.730
Actually my favorite pandas too.

00:18.960 --> 00:21.840
So it's simply fun to perform group by operations.

00:22.800 --> 00:26.440
All right so now I want to give you a very first intuition.

00:26.580 --> 00:33.120
What we can do with the group by method and let's assume we fill our data frame with a male presence

00:33.120 --> 00:39.870
us and female presence us and what we can simply do we can calculate the mean or the average age over

00:39.870 --> 00:43.050
all passengers with the mean method.

00:43.050 --> 00:47.090
But what if we are interested in the group's specific mean nature.

00:47.100 --> 00:54.450
So for example the mean age of all female passengers and the mean age of or made passengers and group

00:54.450 --> 01:01.380
by actually provides us the easiest and most comfortable way to do this and to perform group specific

01:01.380 --> 01:09.630
operations so actually within one line of code we can transform our data frame into a summary data frame

01:09.660 --> 01:15.960
where we have had the mean age for all female passengers and the mean age for all male passengers and

01:15.960 --> 01:22.920
we can simply do this with the group biomass set where we have to pass the key by which we want to split

01:22.950 --> 01:30.420
our data frame here by the sex key so we have male and female in our sex column and then we apply the

01:30.420 --> 01:37.200
mean method and by doing so within one line of code we are getting here our new data frame.

01:37.200 --> 01:43.050
So no Barry I will explain this in more detail in the next videos and we will also practice this in

01:43.050 --> 01:43.830
more detail.

01:44.400 --> 01:50.390
So this was just a little outlook and actually this is just the tip of the iceberg of what we can do

01:50.400 --> 01:51.330
this group by.

01:51.420 --> 01:55.950
And as I said to the functionality and complexity is unlimited here.

01:55.950 --> 01:59.920
So we will see this in the next videos maybe we'll dive deep into this topic.

01:59.940 --> 02:01.980
So I hope to see you there by.
