Aggregation Functions
Well, we saw the use of describe() method on a dataframe or a series which returned some information (i.e. the summary) about the data.
We can also use the individual methods like mean(), median(), unique() to get those information on a dataframe or a series.
Examples are shown below:
To see all the unique values and the number of times they are occuring in the dataset, we have a method called value_counts().
'female' is occurring 502 times in gender column which we saw in the table returned using describe() method.
Last updated
Was this helpful?