Reshape Transpose#

group reshape_transpose

Functions

std::pair<std::unique_ptr<column>, table_view> transpose(table_view const &input, rmm::device_async_resource_ref mr = cudf::get_current_device_resource_ref())#

Transposes a table.

Stores output in a contiguous column, exposing the transposed table as a table_view.

Throws:
Parameters:
  • input[in] A table (M cols x N rows) to be transposed

  • mr[in] Device memory resource used to allocate the device memory of returned value

Returns:

The transposed input (N cols x M rows) as a column and table_view, representing the owner and transposed table, respectively.