@classmethod<EOL><INDENT>def _coerce_to_ndarray(cls, data):<DEDENT>
if not isinstance(data, (np.ndarray, Index)):<EOL><INDENT>if data is None or is_scalar(data):<EOL><INDENT>cls._scalar_data_error(data)<EOL><DEDENT>if not isinstance(data, (ABCSeries, list, tuple)):<EOL><INDENT>data = list(data)<EOL><DEDENT>data = np.asarray(data)<EOL><DEDENT>return data<EOL>
Coerces data to ndarray.

Converts other iterables to list first and then to array.
Does not touch ndarrays.

Raises
------
TypeError
    When the data passed in is a scalar.