Create a new Frame by appending columns from several frames
.
This function is exactly equivalent to:
dt.Frame().cbind(*frames, force=force)
Parameters
frames
Frame
| List[Frame]
| None
Examples
from datatable import dt, f
DT = dt.Frame(A=[1, 2, 3], B=[4, 7, 0])
DT
frame1 = dt.Frame(N=[-1, -2, -5])
frame1
dt.cbind([DT, frame1])
| A | B | N | |
---|
| int32 | int32 | int32 | |
---|
0 | 1 | 4 | -1 | |
1 | 2 | 7 | -2 | |
2 | 3 | 0 | -5 | |
If the number of rows are not equal, you can force the binding by setting
the force
parameter to True
:
frame2 = dt.Frame(N=[-1, -2, -5, -20])
frame2
dt.cbind([DT, frame2], force=True)
| A | B | N | |
---|
| int32 | int32 | int32 | |
---|
0 | 1 | 4 | -1 | |
1 | 2 | 7 | -2 | |
2 | 3 | 0 | -5 | |
3 | NA | NA | -20 | |