#NEWLINE# @ wwwutils . gzipped #NEWLINE# @ expose ( '/data/' ) #NEWLINE# def data( self ) : #NEWLINE# #INDENT# table = request . args . get ( 'table' ) #NEWLINE# sql = 'SELECT * FROM {table} LIMIT 1000;' . format ( table = table ) #NEWLINE# h = PrestoHook ( PRESTO_CONN_ID ) #NEWLINE# df = h . get_pandas_df ( sql ) #NEWLINE# return df . to_html ( classes = 'table table-striped table-bordered table-hover' , index = False , na_rep = '' )