def __repr__(self):
    repr_out = u'Entityset: {}\n'.format(self.id)
    repr_out += u'  Entities:'
    for e in self.entities:
        if e.df.shape:
            repr_out += u'\n    {} [Rows: {}, Columns: {}]'.format(e.id, e.df.shape[0], e.df.shape[1])
        else:
            repr_out += u'\n    {} [Rows: None, Columns: None]'.format(e.id)
    repr_out += '\n  Relationships:'
    if (len(self.relationships) == 0):
        repr_out += u'\n    No relationships'
    for r in self.relationships:
        repr_out += (u'\n    %s.%s -> %s.%s' % (r._child_entity_id, r._child_variable_id, r._parent_entity_id, r._parent_variable_id))
    return repr_out
def __repr__(self):
    repr_out = u'Entityset: {}\n'.format(self.id)
    repr_out += u'  Entities:'
    for e in self.entities:
        if e.df.shape:
            repr_out += u'\n    {} [Rows: {}, Columns: {}]'.format(e.id, e.df.shape[0], e.df.shape[1])
        else:
            repr_out += u'\n    {} [Rows: None, Columns: None]'.format(e.id)
    repr_out += '\n  Relationships:'
    if (len(self.relationships) == 0):
        repr_out += u'\n    No relationships'
    for r in self.relationships:
        repr_out += (u'\n    %s.%s -> %s.%s' % (r._child_entity_id, r._child_variable_id, r._parent_entity_id, r._parent_variable_id))
    return repr_out