def _coerce_scalar_to_index(self, item):
dtype = self.dtype<EOL>if self._is_numeric_dtype and isna(item):<EOL><INDENT>dtype = None<EOL><DEDENT>return Index([item], dtype=dtype, **self._get_attributes_dict())<EOL>
We need to coerce a scalar to a compat for our index type.

Parameters
----------
item : scalar item to coerce