cudf.DataFrame.interleave_columns#

DataFrame.interleave_columns()#

Interleave Series columns of a table into a single column.

Converts the column major table cols into a row major column.

Parameters
colsinput Table containing columns to interleave.
Returns
The interleaved columns as a single column

Examples

>>> df = DataFrame([['A1', 'A2', 'A3'], ['B1', 'B2', 'B3']])
>>> df
0    [A1, A2, A3]
1    [B1, B2, B3]
>>> df.interleave_columns()
0    A1
1    B1
2    A2
3    B2
4    A3
5    B3