def column_to_width(df_in, column, width):
    """Pad the column header and the values in the column with whitespace to a
    specific width.

    """
    df = df_in.copy()

    df[column] = df[column].apply(lambda x: ('{:>' + str(width) + '}').format(x))
    df = df.rename(columns={column: ('{:>' + str(width) + '}').format(column)})

    return df