def median_iqr(series):
    """
    The interquartile range (Q3-Q1) and median are computed on a pandas series
    :param df:
    :return:
    """
    iqr_median = [.25, .5, .75]
    series = series.quantile(iqr_median)
    iqr = series.iloc[2] - series.iloc[0]
    median = series.iloc[1]
    return median, iqr