(values: np.ndarray, groups: np.ndarray, group_name: str)
return np.array([v[~np.isnan(v)] for v in values[groups == group_name]])
Filter values array by group indices and clean it from NaNs.

    :param values: Values to filter.
    :param groups: Timeseries groups.
    :param group_name: Group name to filter by.
    :return: Filtered and cleaned timeseries.
Filter values array by group indices and clean it from NaNs.
Filter values array by group indices and clean it from NaNs .
def group_values(values: np.ndarray, groups: np.ndarray, group_name: str) -> np.ndarray:
    """
    Filter values array by group indices and clean it from NaNs.

    :param values: Values to filter.
    :param groups: Timeseries groups.
    :param group_name: Group name to filter by.
    :return: Filtered and cleaned timeseries.
    """
    return np.array([v[~np.isnan(v)] for v in values[groups == group_name]])
def group_values ( values : np . ndarray , groups : np . ndarray , group_name : str ) -> np . ndarray : return np . array ( [ v [ ~ np . isnan ( v ) ] for v in values [ groups == group_name ] ] )