File: remove.rst

package info (click to toggle)
python-agate 1.13.0-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,008 kB
  • sloc: python: 8,578; makefile: 126
file content (25 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
==============
Remove columns
==============

Include specific columns
=========================

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

.. code-block:: python

    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:

.. code-block:: python

    exclude_columns = ['column_name_one', 'column_name_two']

    new_table = table.exclude(exclude_columns)