def to_array(self, columns=None):
    '\n        Return a numpy array of the give TimeSeries object.\n\n        Parameters\n        ----------\n        columns: `list`, optional, default:None\n            If None, return all columns minus the index, otherwise, returns\n            specified columns.\n\n        Returns\n        -------\n        values : `~numpy.ndarray`\n            If the caller is heterogeneous and contains booleans or objects,\n            the result will be of dtype=object. See Notes.\n        '
    if columns:
        return self.data.values[columns]
    else:
        return self.data.values
Return a numpy array of the give TimeSeries object.

Parameters
----------
columns: `list`, optional, default:None
    If None, return all columns minus the index, otherwise, returns
    specified columns.

Returns
-------
values : `~numpy.ndarray`
    If the caller is heterogeneous and contains booleans or objects,
    the result will be of dtype=object. See Notes.
def to_array(self, columns=None):
    '\n        Return a numpy array of the give TimeSeries object.\n\n        Parameters\n        ----------\n        columns: `list`, optional, default:None\n            If None, return all columns minus the index, otherwise, returns\n            specified columns.\n\n        Returns\n        -------\n        values : `~numpy.ndarray`\n            If the caller is heterogeneous and contains booleans or objects,\n            the result will be of dtype=object. See Notes.\n        '
    if columns:
        return self.data.values[columns]
    else:
        return self.data.values