@staticmethod
def format_row(row, bounds, columns):
    """Formats a single row of the dataframe"""
    for c in columns:
        if c not in row:
            continue
        if 'format' in columns[c]:
            row[c] = columns[c]['format'] % row[c]
        if c in bounds:
            b = bounds[c]
            row[c] = [b['min'], row[b['lower']], row[b['upper']], b['max']]
    return row
