Max, min, mean, median




To find the max
of the total df
use:
df.max()
To find the max of the column, use:
df['column_name'].max()
# or
df.column_name.max()
The same code is used to find the min
, mean
, and median
.
Pay attention! If there are 2 elements in the middle of the array, the the median will be counted in the following way: (a+b)/2 where a and b are central elements.
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 5
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.08
Max, min, mean, median
Swipe to show menu




To find the max
of the total df
use:
df.max()
To find the max of the column, use:
df['column_name'].max()
# or
df.column_name.max()
The same code is used to find the min
, mean
, and median
.
Pay attention! If there are 2 elements in the middle of the array, the the median will be counted in the following way: (a+b)/2 where a and b are central elements.
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 5