mvtsa.as_collection#

mvtsa.as_collection(data, *, dtype=<class 'float'>, allow_nan=False)[source]#

Return a collection of series as a list of (T_i, n) arrays.

data may be a list of arrays (of possibly different lengths), a 3-D array (N, T, n), a 2-D array (N, T) of univariate series, or a single 2-D series (which then becomes a collection of one).

>>> [x.shape for x in as_collection(np.zeros((4, 10)))]
[(10, 1), (10, 1), (10, 1), (10, 1)]