

def _make_arma_exog(endog, exog, trend):
    k_trend = 1
    if ((exog is None) and (trend == 'c')):
        exog = np.ones((len(endog), 1))
    elif ((exog is not None) and (trend == 'c')):
        exog = add_trend(exog, trend='c', prepend=True)
    elif ((exog is not None) and (trend == 'nc')):
        if (exog.var() == 0):
            exog = None
        k_trend = 0
    if (trend == 'nc'):
        k_trend = 0
    return (k_trend, k_trend)

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/arima_model.py _make_arma_exog/VarMisuse@145/198 `exog`->`k_trend`