Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(python): Fix flaky categorical test #20591

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Jan 7, 2025

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars labels Jan 7, 2025
@nameexhaustion nameexhaustion marked this pull request as ready for review January 7, 2025 11:53
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.95%. Comparing base (04004b8) to head (9d66fe5).
Report is 52 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20591      +/-   ##
==========================================
- Coverage   78.97%   78.95%   -0.02%     
==========================================
  Files        1564     1564              
  Lines      220807   220863      +56     
  Branches     2510     2510              
==========================================
+ Hits       174377   174382       +5     
- Misses      45855    45906      +51     
  Partials      575      575              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit 3f831ea into pola-rs:main Jan 7, 2025
16 checks passed
@@ -942,7 +942,7 @@ def test_categorical_unique_20539() -> None:
df.cast({"letter": pl.Categorical})
.group_by("number")
.agg(
unique=pl.col("letter").unique(),
unique=pl.col("letter").unique(maintain_order=True),
unique_with_order=pl.col("letter").unique(maintain_order=True),
Copy link
Contributor

Choose a reason for hiding this comment

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

These two aggregations are now identical FYI.

@c-peters c-peters added the accepted Ready for implementation label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement python Related to Python Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants