I have a data frame with the columns \'age\' (int) and \'gender\' which is a factor.
How would I calculate for each gender (male and female) separately, the median, m