

def _format_table(self, table):
    rows = ['name: {0!s}\nschema:'.format(table.name)]
    rows.extend([('  %s : %s' % tup) for tup in zip(table.schema.names, table.schema.types)])
    opname = type(table).__name__
    type_display = self._get_type_display(table)
    opline = ('%s[%s]' % (opname, type_display))
    return '{0}\n{1}'.format(opline, self._indent('\n'.join(rows)))

dataset/ETHPy150Open cloudera/ibis/ibis/expr/format.py ExprFormatter._format_table/original