mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-16 07:15:19 -05:00
use ffill in forecasting example
This commit is contained in:
@@ -8,7 +8,8 @@ def test_forecast_automl(budget=5):
|
||||
|
||||
data = sm.datasets.co2.load_pandas().data["co2"].resample("MS").mean()
|
||||
data = (
|
||||
data.fillna(data.bfill())
|
||||
data.bfill()
|
||||
.ffill()
|
||||
.to_frame()
|
||||
.reset_index()
|
||||
.rename(columns={"index": "ds", "co2": "y"})
|
||||
|
||||
Reference in New Issue
Block a user