drop_columns

The drop_columns method creates a table with the same number of rows as the source table but omits any columns included in the arguments.

Syntax

Parameters

ParameterTypeDescription
colsUnion[str, Sequence[str]]

Columns that will be omitted in the new table.

Returns

A new table that includes the same number of rows as the source table, with the specified column names omitted.

Examples