def _get_attributes_dict(self):
        return dict([(k, getattr(self, k, None)) for k in self._attributes])
return an attributes dict for my class
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._get_attributes_dict