def to_series(self, keep_tz=False):
        from pandas import Series
        return Series(self._to_embed(keep_tz), index=self, name=self.name)
Create a Series with both index and values equal to the index keys
dataset/ETHPy150Open pydata/pandas/pandas/tseries/index.py/DatetimeIndex.to_series