Skip to content

Conversation

@sevenzees
Copy link
Contributor

Fixes #7574

Adds a CountDistinct method to the GroupBy class which counts distinct values per group. Adds a CountIf method to the GroupBy class which counts values per group that satisfy a custom predicate.

@sevenzees sevenzees marked this pull request as draft January 30, 2026 22:49
@sevenzees sevenzees marked this pull request as ready for review January 30, 2026 22:52
@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

❌ Patch coverage is 98.59155% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 69.03%. Comparing base (25b977e) to head (d936477).

Files with missing lines Patch % Lines
src/Microsoft.Data.Analysis/GroupBy.cs 97.05% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7575   +/-   ##
=======================================
  Coverage   69.02%   69.03%           
=======================================
  Files        1482     1482           
  Lines      274099   274169   +70     
  Branches    28266    28272    +6     
=======================================
+ Hits       189199   189263   +64     
- Misses      77518    77523    +5     
- Partials     7382     7383    +1     
Flag Coverage Δ
Debug 69.03% <98.59%> (+<0.01%) ⬆️
production 63.31% <97.05%> (+<0.01%) ⬆️
test 89.47% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...st/Microsoft.Data.Analysis.Tests/DataFrameTests.cs 99.90% <100.00%> (+<0.01%) ⬆️
src/Microsoft.Data.Analysis/GroupBy.cs 97.88% <97.05%> (-0.09%) ⬇️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CountDistinct method to GroupBy

1 participant