Add extra data like weather or prices
Other series affect your target: weather, promotions, prices. They usually
live in a separate table. covariates attaches that table to your input and
matches its rows to yours by key, so you don't have to join them yourself:
Code
Post it to https://api.retrocast.com/v1-beta/forecast?model=t0-alpha.
model names the forecasting model and is required — without it the
request is rejected with missing field "model".
on lists the columns to match on — here the base date against the
attached date. temperature then behaves like a column of the base
series.
Two things to watch:
on: []matches every attached row to every base row.- Leaving
onout is not the same ason: []. The request is rejected, so always list the pairs.
Use only to keep a subset of the attached columns, or rename to rename
them.
Each extra table stays where it is. Attach weather, prices and promotions separately instead of maintaining one wide pre-joined table.
What comes back
Only your targets. The attached columns change the forecast but are not echoed back:
Code
There is no temperature entry — it was an input, not something to
forecast. To get a forecast for it too, make it a column of your base series
with the "target" kind instead. See
Forecast several columns at once.

