Skip to content

FPM-273: Filter by flag#73

Merged
richjam merged 4 commits intomainfrom
feature/FPM-273-filter-by-flag
Apr 14, 2026
Merged

FPM-273: Filter by flag#73
richjam merged 4 commits intomainfrom
feature/FPM-273-filter-by-flag

Conversation

@richjam
Copy link
Copy Markdown
Collaborator

@richjam richjam commented Apr 14, 2026

This PR gives users to ability to filter a TimeFrame to rows that have (or lack) a specific flag set in a flag column.

Main changes

  • Add filter_expr to FlagColumn and its subclasses - generates the Polars boolean expression that is True for rows where any of the given flags are set. Handles encoded vs decoded states.
  • Add filter_by_flag to TimeFrame base class - calls filter_expr, optionally flips it for include/exclusion, then returns a new TimeFrame with the filtered DataFrame

@richjam richjam requested a review from simsta87 April 14, 2026 12:06
@richjam richjam merged commit 8c3841f into main Apr 14, 2026
3 checks passed
@richjam richjam deleted the feature/FPM-273-filter-by-flag branch April 14, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants