nussl/evaluation/report_card.py
def _get_mean_and_std(df, decs=2):
    """
    Gets the mean and standard deviation of each metric in the pandas
    DataFrame and returns it as a list of strings.
    """
    excluded_columns = ['source', 'file']

    metrics = [x for x in list(df.columns) if x not in excluded_columns]
    metrics.insert(0, '#')

    means = [
        f'{truncate(m, decs=decs):{4+decs}.{decs}f}' 
        for m in np.array(df.mean()).T
    ]
    stds = [
        f'{truncate(s, decs=decs):{3+decs}.{decs}f}' 
        for s in np.array(df.std()).T
    ]
    data = [f'{m} +/- {s}' for m, s in zip(means, stds)]
    data.insert(0, df.shape[0])

    return metrics, data

    Gets the mean and standard deviation of each metric in the pandas
    DataFrame and returns it as a list of strings.
    
Gets the mean and standard deviation of each metric in the pandas
DataFrame and returns it as a list of strings.
Gets the mean and standard deviation of each metric in the pandas DataFrame and returns it as a list of strings .
def _get_mean_and_std(df, decs=2):
    excluded_columns = ['source', 'file']
    metrics = [x for x in list(df.columns) if x not in excluded_columns]
    metrics.insert(0, '#')
    means = [
        f'{truncate(m, decs=decs):{4+decs}.{decs}f}' 
        for m in np.array(df.mean()).T
    ]
    stds = [
        f'{truncate(s, decs=decs):{3+decs}.{decs}f}' 
        for s in np.array(df.std()).T
    ]
    data = [f'{m} +/- {s}' for m, s in zip(means, stds)]
    data.insert(0, df.shape[0])
    return metrics, data
def _get_mean_and_std ( df , decs = 2 ) : excluded_columns = [ 'source' , 'file' ] metrics = [ x for x in list ( df . columns ) if x not in excluded_columns ] metrics . insert ( 0 , '#' ) means = [ f'{truncate(m, decs=decs):{4+decs}.{decs}f}' for m in np . array ( df . mean ( ) ) . T ] stds = [ f'{truncate(s, decs=decs):{3+decs}.{decs}f}' for s in np . array ( df . std ( ) ) . T ] data = [ f'{m} +/- {s}' for m , s in zip ( means , stds ) ] data . insert ( 0 , df . shape [ 0 ] ) return metrics , data
Gets the mean and standard deviation of each metric in the pandas
DataFrame and returns it as a list of strings.
Gets the mean and standard deviation of each metric in the pandas DataFrame and returns it as a list of strings .
"""
    Gets the mean and standard deviation of each metric in the pandas
    DataFrame and returns it as a list of strings.
    """
df
decs