Skip to content

fix(labeling): remove grouped as-of sortedness warning - #61

Merged
stefan-jansen merged 1 commit into
mainfrom
codex/fix-59-grouped-asof-warning
Sep 24, 2026
Merged

stefan-jansen merged 1 commit into
mainfrom
codex/fix-59-grouped-asof-warning

Conversation

@stefan-jansen

Copy link
Copy Markdown
Contributor

Summary

  • validate timestamp order within each group before grouped as-of joins
  • disable only Polars grouped sortedness checks that cannot verify the validated input
  • cover public labels, direct grouped and ungrouped lookups, tolerance, group isolation, terminal nulls, and unordered inputs

Verification

  • uv run pytest tests/labeling/test_time_horizons.py -q (57 passed)
  • uv run pytest tests/ -q (3928 passed, 57 deselected)
  • uv run ruff check src/ tests/ examples/ scripts/
  • uv run ruff format --check src/ tests/ examples/ scripts/
  • uv run ty check
  • uv build
  • uv run python -c "import ml4t.engineer"
  • uv run mkdocs build --strict

Closes #59.

Validate timestamp order within each group before disabling Polars grouped sortedness checks, removing the false warning without accepting unordered input.

Closes #59.
@stefan-jansen
stefan-jansen marked this pull request as ready for review September 24, 2026 09:52
Copilot AI lite review requested due to automatic review settings September 24, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@stefan-jansen
stefan-jansen merged commit ca8374b into main Sep 24, 2026
31 checks passed
@stefan-jansen
stefan-jansen deleted the codex/fix-59-grouped-asof-warning branch September 24, 2026 10:05
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.

fixed_time_horizon_labels with a duration horizon and group_col emits a polars sortedness UserWarning on every call

2 participants