Return the median of grouped continuous data, calculated as the 50th percentile, using interpolation. If data is empty, StatisticsError is raised.
statistics.median_grouped(data, interval=1)
>>> median_grouped([52, 52, 53, 54]) 52.5