def append_num_column ( self , text : str , index : int ) : width = self . columns [ index ] [ "width" ] return f"{text:>{width}}"
python formating the width of a column
Add value to the output row width based on index
def append_num_column(self, text: str, index: int):
        """ Add value to the output row, width based on index """
        width = self.columns[index]["width"]
        return f"{text:>{width}}"