Dive Deeper into Grouping Data
In the previous chapter, we applied the mean()
function, but I want to share with you other commonly used methods.
Function title | Implementation | Syntax |
---|---|---|
mean() | Finds the mean value of all values in column that relates to one group | DataFrame.groupby().mean() |
median() | Finds the median value of all values in column that relates to one group | DataFrame.groupby().median() |
sum() | Finds the sum of all values in column that relates to one group | DataFrame.groupby().sum() |
count() | Finds the amount of values in column that relates to one group | DataFrame.groupby().count() |
min() | Finds the minimum value of all values in column that relates to one group | DataFrame.groupby().min() |
max() | Finds the maximim value of all values in column that relates to one group | DataFrame.groupby().max() |
In the task you will work with the dataset:
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 8
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Awesome!
Completion rate improved to 2.08
Dive Deeper into Grouping Data
Scorri per mostrare il menu
In the previous chapter, we applied the mean()
function, but I want to share with you other commonly used methods.
Function title | Implementation | Syntax |
---|---|---|
mean() | Finds the mean value of all values in column that relates to one group | DataFrame.groupby().mean() |
median() | Finds the median value of all values in column that relates to one group | DataFrame.groupby().median() |
sum() | Finds the sum of all values in column that relates to one group | DataFrame.groupby().sum() |
count() | Finds the amount of values in column that relates to one group | DataFrame.groupby().count() |
min() | Finds the minimum value of all values in column that relates to one group | DataFrame.groupby().min() |
max() | Finds the maximim value of all values in column that relates to one group | DataFrame.groupby().max() |
In the task you will work with the dataset:
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 8