

def _format_attrs(self):
    '\n        Return a list of tuples of the (attr,formatted_value)\n        '
    attrs = []
    attrs.append(('dtype', ("'%s'" % self.dtype)))
    if (self.name is not None):
        attrs.append(('name', default_pprint(self.name)))
    max_seq_items = (get_option('display.max_seq_items') or len(self))
    if (len(self) > max_seq_items):
        attrs.append(('length', len(self)))
    return attrs

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._format_attrs/original