Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Dive Deeper into Grouping Data | Explore Dataset
Introduction to Python for Data Analysis

bookDive 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 titleImplementationSyntax
mean()Finds the mean value of all values in column that relates to one groupDataFrame.groupby().mean()
median()Finds the median value of all values in column that relates to one groupDataFrame.groupby().median()
sum()Finds the sum of all values in column that relates to one groupDataFrame.groupby().sum()
count()Finds the amount of values in column that relates to one groupDataFrame.groupby().count()
min()Finds the minimum value of all values in column that relates to one groupDataFrame.groupby().min()
max()Finds the maximim value of all values in column that relates to one groupDataFrame.groupby().max()

In the task you will work with the dataset:

question-icon

Fill the gaps to cope with the tasks. Group by experience_level using .min() function to find the minimum salaries for each experience level.

.(['']).

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 8

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Awesome!

Completion rate improved to 2.08

bookDive Deeper into Grouping Data

Sveip for å vise menyen

In the previous chapter, we applied the mean() function, but I want to share with you other commonly used methods.

Function titleImplementationSyntax
mean()Finds the mean value of all values in column that relates to one groupDataFrame.groupby().mean()
median()Finds the median value of all values in column that relates to one groupDataFrame.groupby().median()
sum()Finds the sum of all values in column that relates to one groupDataFrame.groupby().sum()
count()Finds the amount of values in column that relates to one groupDataFrame.groupby().count()
min()Finds the minimum value of all values in column that relates to one groupDataFrame.groupby().min()
max()Finds the maximim value of all values in column that relates to one groupDataFrame.groupby().max()

In the task you will work with the dataset:

question-icon

Fill the gaps to cope with the tasks. Group by experience_level using .min() function to find the minimum salaries for each experience level.

.(['']).

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 8
some-alt