Remove columns - agate 1.13.0 documentation

Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# Remove columns

## Include specific columns

Create a new table with only a specific set of columns:

    include_columns = ['column_name_one', 'column_name_two']

    new_table = table.select(include_columns)

## Exclude specific columns

Create a new table without a specific set of columns:

    exclude_columns = ['column_name_one', 'column_name_two']

    new_table = table.exclude(exclude_columns)