def compute_mean_rt(df):
    """
    Computes subject-wise mean RT

    Input
    ---
    df : dataframe
        aggregate response data

    Returns
    ---
        array of subject-wise mean RTs
    """
    return df.groupby('subject').rt.mean().values
