def print_virt_table(self, data):
        """Print a vertical pretty table from data."""

        table = prettytable.PrettyTable()
        keys = sorted(data.keys())
        table.add_column('Keys', keys)
        table.add_column('Values', [data.get(i) for i in keys])
        for tbl in table.align.keys():
            table.align[tbl] = 'l'

        self.printer(table)
def print_virt_table ( self , data ) : table = prettytable . PrettyTable ( ) keys = sorted ( data . keys ( ) ) table . add_column ( 'Keys' , keys ) table . add_column ( 'Values' , [ data . get ( i ) for i in keys ] ) for tbl in table . align . keys ( ) : table . align [ tbl ] = 'l' self . printer ( table )
Print a vertical pretty table from data.