def remove_from_series(ts: 'TimeSeries', other: 'TimeSeries', model: str
    ) ->'TimeSeries':
    """
    Removes the TimeSeries `other` from the TimeSeries `ts` according to the specified model.

    :param ts: The TimeSeries to be modified.
    :param other: The TimeSeries to remove.
    :param model: The type of model considered (either 'additive' or 'multiplicative').
    :return: A TimeSeries `new_ts`, defined by removing `other` from `ts`.
    """
    if (other.values() < 1e-06).any() and model == 'multiplicative':
        print(
            'WARNING indexes equal to zero, cannot remove for a multiplicative model.'
            )
        return ts
    elif model == 'multiplicative':
        new_ts = ts / other
    else:
        new_ts = ts - other
    return new_ts
