728x90
반응형
문제
add_regressor('name')함수를 사용하고 forecast = m.predict(future)
를 했더니 위와 같은 에러가 나왔다.
해결
이는 회귀변수의 미래 값이 없기 때문이다.
future.fillna(method='ffill',inplace=True)
없는 값을 fillna( )함수를 통해서 채워주었다.
728x90
반응형
'# Time Series > # Prophet' 카테고리의 다른 글
[Prophet] TypeError: ufunc 'isfinite' not supported for the input types 에러 (0) | 2023.01.20 |
---|---|
[Prophet] Regressor 'name' missing from dataframe 에러 - add_regressor 함수 (0) | 2023.01.18 |
[Time Series] Neural Prophet 정리 (0) | 2023.01.18 |
[Time Series] Prophet 정리 (0) | 2023.01.18 |