standardize
    Z = (X - mean) / (standard deviation)

def standardize(table, option):
    """
    standardize
    Z = (X - mean) / (standard deviation)
    """
    if option == 'table':
        mean = np.mean(table)
        std = np.std(table)
    t = []
    for row in table:
        t_row = []
        if option != 'table':
            mean = np.mean(row)
            std = np.std(row)
        for i in row:
            if std == 0:
                t_row.append(0)
            else:
                t_row.append((i - mean)/std)
        t.append(t_row)
    return t