TimeFrame.select¶
- TimeFrame.select(column_names, include_flag_columns=True)[source]¶
Return a new TimeFrame instance to include only the specified columns.
- By default, this:
carries over TimeFrame-level metadata,
prunes column-level metadata to the kept columns,
rebuilds the flag manager to include only kept flag columns.
- Parameters:
column_names (
Union
[str
,Sequence
[str
]]) – Column name(s) to retain in the updated TimeFrame.include_flag_columns (
bool
) – If True, include any registered flag columns whose base is among the kept value columns.
- Return type:
Self
- Returns:
New TimeFrame instance with only selected columns.