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.
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Stel mij vragen over dit onderwerp
Vat dit hoofdstuk samen
Toon voorbeelden uit de praktijk
Geweldig!
Completion tarief verbeterd naar 2.08
Max, min, mean, median
Veeg om het menu te tonen




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.
Bedankt voor je feedback!