

def to_series(self, **kwargs):
    '\n        Create a Series with both index and values equal to the index keys\n        useful with map for returning an indexer based on an index\n\n        Returns\n        -------\n        Series : dtype will be based on the type of the Index values.\n        '
    from pandas import Series
    return Series(self._to_embed(), index=self, name=kwargs.name)

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index.to_series/VarMisuse@35/133 `self`->`kwargs`