(df)
return df.groupby(["pipeline", "dataset", "subject"]).mean().reset_index()
Prepare results dataframe for computing statistics

    Parameters
    ----------
    df: DataFrame
        results from evaluation

    Returns
    -------
    df: DataFrame
        Aggregated results, samples are index, columns are pipelines,
        and values are scores
Prepare results dataframe for computing statistics
Prepare results dataframe for computing statistics
def collapse_session_scores(df):
    """Prepare results dataframe for computing statistics

    Parameters
    ----------
    df: DataFrame
        results from evaluation

    Returns
    -------
    df: DataFrame
        Aggregated results, samples are index, columns are pipelines,
        and values are scores
    """
    return df.groupby(["pipeline", "dataset", "subject"]).mean().reset_index()
def collapse_session_scores ( df ) : return df . groupby ( [ "pipeline" , "dataset" , "subject" ] ) . mean ( ) . reset_index ( )