def tolist(self):
if is_datetimelike(self._values):<EOL><INDENT>return [com.maybe_box_datetimelike(x) for x in self._values]<EOL><DEDENT>elif is_extension_array_dtype(self._values):<EOL><INDENT>return list(self._values)<EOL><DEDENT>else:<EOL><INDENT>return self._values.tolist()<EOL><DEDENT>
Return a list of the values.

These are each a scalar type, which is a Python scalar
(for str, int, float) or a pandas scalar
(for Timestamp/Timedelta/Interval/Period)

Returns
-------
list

See Also
--------
numpy.ndarray.tolist