# Multivariate series

> Several targets of one series, forecast together.

When one series has several targets that move together, such as electricity load and price, the model can forecast
them jointly, so each target's forecast reads the others.

## In a DataFrame

Name the targets with `target_col`:

```python
fc = model.forecast(grid, h=24, target_col=["load", "price"])
```

The result gets a `target` column saying which target each row is for: `ds`, `target`, `q10`, `median`, `q90`.

## With arrays

Give each series as a `(V, T)` array of its V targets, inside a list, or stack several such series into `(N, V, T)`:

```python
fc = model.forecast([y], h=24)[0]  # y: (V, T) -> (V, h, Q)
fc = model.forecast(Y, h=24)       # Y: (N, V, T) -> (N, V, h, Q)
```

> **Caution:** A bare `(V, T)` array, not in a list, is read as V separate series of one target each. Wrap it in a list to forecast
> the targets jointly.

## Related series

Separate series that are not targets of one series, such as the stores of one chain, can still help each other. With
`cross_series=True`, single-target series without covariates are read 16 at a time, so the model sees their neighbours:

```python
fc = model.forecast(df, h=7, cross_series=True)  # or a group size, e.g. cross_series=32
```
