datatable.repeat()

Concatenate n copies of the frame by rows and return the result.

This is equivalent to dt.rbind([frame] * n).

Example

from datatable import dt DT = dt.Frame({"A": [1, 1, 2, 1, 2], "B": [None, 2, 3, 4, 5]}) DT
AB
int32int32
01NA
112
223
314
425
dt.repeat(DT, 2)
AB
int32int32
01NA
112
223
314
425
51NA
612
723
814
925