我正在以百分比构建 ARIMA/Sarima 模型,但出现以下错误 1-
model = SARIMAX(np.asarray(train), order = (0, 1, 1), seasonal_order =(1, 1, 1, 12))
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
2-如果我不将 pandas 数据框转换为 numpy 数组,我会收到以下错误
model = SARIMAX(train, order = (0, 1, 1), seasonal_order =(1, 1, 1, 12))
ValueError: Pandas data cast to numpy dtype of object. Check input data with np.asarray(data).
尽管几天前我在步骤 2 中使用的相同代码正在运行