def print_ic_table(ics, selected_orders):
 cols = sorted(ics)
 data = mat([[('%#10.4g' % v) for v in ics[c]] for c in cols], dtype=object).T
 for (i, col) in enumerate(cols):
  idx = (int(selected_orders[col]), i)
  data[idx] = (data[idx] + '*')
 fmt = dict(_default_table_fmt, data_fmts=(('%s',) * len(cols)))
 buf = StringIO()
 table = SimpleTable(data, cols, lrange(len(data)), title='VAR Order Selection', txt_fmt=fmt)
 buf.write((str(table) + '\n'))
 buf.write(('* Minimum' + '\n'))
 print(buf.getvalue())

def print_ic_table ( ics , selected_orders ) : cols = sorted ( ics ) data = mat ( [ [ ( '%#10.4g' % v ) for v in ics [ c ] ] for c in cols ] , dtype = object ) . T for ( i , col ) in enumerate ( cols ) : idx = ( int ( selected_orders [ col ] ) , i ) data [ idx ] = ( data [ idx ] + '*' ) fmt = dict ( _default_table_fmt , data_fmts = ( ( '%s' , ) * len ( cols ) ) ) buf = StringIO ( ) table = SimpleTable ( data , cols , lrange ( len ( data ) ) , title = 'VAR Order Selection' , txt_fmt = fmt ) buf . write ( ( str ( table ) + '\n' ) ) buf . write ( ( '* Minimum' + '\n' ) ) print ( buf . getvalue ( ) )
for var order selection .