convert_series

convert_series(y, output_type)[source]

Convert series y to the specified output_type.

y, a single series of type pd.Series, pd.DataFrame or np.ndarray.

Parameters:
ynp.ndarray, pd.Series, pd.DataFrame

Time series to be converted.

output_typestring or list of string

The type to convert y to. If a list of string, either the type of y is in the list, in which case y is returned, or conversion is attempted on the first entry in the list of a valid output_type [“np.ndarray”, “pd.Series”, “pd.DataFrame”].

Returns:
converted version of y