

def _coerce_scalar_to_index(self, item):
    '\n        we need to coerce a scalar to a compat for our index type\n\n        Parameters\n        ----------\n        item : scalar item to coerce\n        '
    return Index([self], dtype=self.dtype, **self._get_attributes_dict())

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._coerce_scalar_to_index/VarMisuse@18/81 `item`->`self`