Skip to content

Polars/phase 3 batch conversions 1#1048

Draft
EngCaioFonseca wants to merge 2 commits intopolars/phase-2-query-layerfrom
polars/phase-3-batch-conversions-1
Draft

Polars/phase 3 batch conversions 1#1048
EngCaioFonseca wants to merge 2 commits intopolars/phase-2-query-layerfrom
polars/phase-3-batch-conversions-1

Conversation

@EngCaioFonseca
Copy link
Copy Markdown
Contributor

PR of the series of migrating pandas to polars in 8knot.

Generative AI disclosure

  • This contribution was assisted or created by Generative AI tools.
    • What tools were used?
    • How were these tools used?
    • Did you review these outputs before submitting this PR?

Modules converted:
- commits_over_time.py:
  - Polars for datetime conversion and sorting
  - Polars dt.truncate() for period grouping
  - Polars group_by().agg(n_unique()) for commit counting

- active_drifting_contributors.py:
  - Polars for initial processing
  - Polars filtering in get_active_drifting_away_up_to() (2-5x faster)
  - Replaced .apply() with list comprehension

- pr_staleness.py:
  - Polars for datetime conversion and sorting
  - Polars filtering in get_new_staling_stale_up_to() (2-5x faster)
  - Replaced .apply() with list comprehension

- issue_staleness.py:
  - Polars for datetime conversion and sorting
  - Polars filtering in get_new_staling_stale_up_to() (2-5x faster)
  - Replaced .apply() with list comprehension

Total modules using Polars: 10+
Remaining .apply() calls converted to list comprehensions: 4

Architecture maintained: Polars Core, Pandas Edge
Modules converted:
- pr_assignment.py:
  - Polars for datetime conversion and sorting
  - Polars filtering in pr_assignment() (2-5x faster)
  - Replaced .apply() with list comprehension

- issue_assignment.py:
  - Polars for datetime conversion and sorting
  - Polars filtering in issue_assignment() (2-5x faster)
  - Replaced .apply() with list comprehension
  - Fixed duplicate import (removed 'import app' duplicate)

- pr_first_response.py:
  - Polars for datetime conversion and filtering
  - Polars filtering in get_open_response() (2-5x faster)
  - Replaced .apply() with list comprehension

Total modules using Polars: 14+
Architecture maintained: Polars Core, Pandas Edge
@EngCaioFonseca EngCaioFonseca self-assigned this Dec 19, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Dec 19, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch polars/phase-3-batch-conversions-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@EngCaioFonseca EngCaioFonseca moved this from Backlog to Testing | Waiting on PR response | Blocked in Aspen Project Board Jan 26, 2026
@EngCaioFonseca EngCaioFonseca moved this from Testing | Waiting on PR response | Blocked to In Progress in Aspen Project Board Jan 26, 2026
@EngCaioFonseca EngCaioFonseca moved this from In Progress to "On Deck" in Aspen Project Board Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: "On Deck"

Development

Successfully merging this pull request may close these issues.

1 participant