Anyone has a nice example of how to calculate a median for a grouped data in R or Python : if you can also please provide a small example on the usage and how data is processed, thanks in advance. I am trying to calculate the median of any grpued data like age cohort , for instance , how to choose the median value of such datasets