reshape#
- pylibcudf.reshape.interleave_columns(Table source_table) Column #
Interleave columns of a table into a single column.
Converts the column major table input into a row major column.
Example: in = [[A1, A2, A3], [B1, B2, B3]] return = [A1, B1, A2, B2, A3, B3]
For details, see
interleave_columns()
.- Parameters:
- source_table: Table
The input table to interleave
- Returns:
- Column
A new column which is the result of interleaving the input columns
- pylibcudf.reshape.table_to_array(Table input_table, uintptr_t ptr, size_t size, Stream stream=None) void #
Copy a table into a preallocated column-major device array.
- Parameters:
- input_tableTable
A table with fixed-width, non-nullable columns of the same type.
- ptruintptr_t
A device pointer to the beginning of the output buffer.
- sizesize_t
The total number of bytes available at ptr. Must be at least num_rows * num_columns * sizeof(dtype).
- streamStream | None
CUDA stream on which to perform the operation.
- pylibcudf.reshape.tile(Table source_table, size_type count) Table #
Repeats the rows from input table count times to form a new table.
For details, see
tile()
.- Parameters:
- source_table: Table
The input table containing rows to be repeated
- count: size_type
The number of times to tile “rows”. Must be non-negative
- Returns:
- Table
The table containing the tiled “rows”