TimeFrame.select

TimeFrame.select(column_names)[source]

Return a new TimeFrame instance to include only the specified columns.

This:
  • carries over TimeFrame-level metadata,

  • prunes column-level metadata to the kept columns,

  • rebuilds the flag manager to include only kept flag columns.

Flag columns are not automatically included; name them explicitly if you want them retained.

Parameters:

column_names (Union[str, Sequence[str]]) – Column name(s) to retain in the updated TimeFrame.

Return type:

Self

Returns:

New TimeFrame instance with only selected columns.