## models.bootstrap_rows()


[n](pricing.TrendFit.md#prospicio.pricing.TrendFit.n) row indices drawn from `range(n)` with replacement on stream


Usage


``` python
models.bootstrap_rows(
    n,
    seed,
    stream=0,
)
```


`stream` of [seed](aggregate.EventSet.md#prospicio.aggregate.EventSet.seed): the bootstrap resample [Booster](boosting.Booster.md#prospicio.boosting.Booster) refits on, the same in Python and R.


## Parameters


`n: int`  

`seed: int`  

`stream: int = ``0`  


## Returns


`list of int`  


## Examples

``` python
>>> from prospicio.models import bootstrap_rows
>>> bootstrap_rows(8, 3)
```

\[4, 0, 2, 6, 1, 1, 0, 5\]
