def _format_attrs(self):
        attrs = self._get_data_as_items()
        if self.name is not None:
            attrs.append(('name', ibase.default_pprint(self.name)))
        return attrs
Return a list of tuples of the (attr, formatted_value)
dataset/ETHPy150Open pydata/pandas/pandas/indexes/range.py/RangeIndex._format_attrs