

def _get_predict_start(self, start, dynamic):
    '\n        '
    k_diff = getattr(self, 'k_diff', 0)
    method = getattr(self, 'method', 'mle')
    k_ar = getattr(self, 'k_ar', 0)
    if (start is None):
        if (('mle' in method) and (not dynamic)):
            start = 0
        else:
            start = k_ar
    elif isinstance(start, int):
        start -= k_diff
        try:
            start = super(ARIMA, self)._get_predict_start(start, dynamic)
        except IndexError:
            raise ValueError(('start must be in series. got %d' % (start + k_diff)))
    else:
        start = _validate(start, k_ar, k_diff, self.data.dates, method)
        start = super(ARIMA, self)._get_predict_start(start, dynamic)
    self._set_predict_start_date((start + k_diff))
    return start

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/arima_model.py ARIMA._get_predict_start/original