All docs
Table·
method
Table.select
keeps only the named columns, in the given order
Python
select(*names: str) -> Table
Returns Table — a new Table with only those columns, in order
Parameters#
| name | type | default | description |
|---|---|---|---|
*names |
str |
— | column names to keep, in the desired order |
Example#
Python
t.select("name", "score")
A single list or tuple is also accepted:
Python
t.select(["name", "score"])
Notes#
Output column order follows the order you pass. Every call returns a new Table.
To remove columns instead of listing the survivors, use drop.
See also#
Guides: Tables & data flow
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown