move_columns_up

The move_columns_up method creates a new table with specified columns appearing first in order, to the far left.

Syntax

Parameters

ParameterTypeDescription
colsUnion[str, Sequence[str]]

Columns to move to the left side of the new table.

Returns

A new table with specified columns appearing first in order, to the far left.

Examples

The following query moves column B to the first position in the resulting table.

The following example moves columns B and D to the first positions in the resulting table.