Conteúdo do Curso
Introduction to Python for Data Analysis
Introduction to Python for Data Analysis
2. Introduction to Python 2/2
3. Explore Dataset
Data StudyOperations with the FileHow to Explore the DataSorting DataMax, min, mean, medianChallengeGroup DataDive Deeper into Grouping DataGroup Data 2.0Introduction to NumPyPivot TablesRecall Loops.loc FunctionDeal with Several ConditionsChallengeVisualization: First StepsDive Deeper into Visualization
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:
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 8