Skip to content

Document supported column types for FilterRowsByColumn - #7966

Open
ZebrowskiM wants to merge 1 commit into
dotnet:mainfrom
ZebrowskiM:document-filterrowsbycolumn-types
Open

ZebrowskiM wants to merge 1 commit into
dotnet:mainfrom
ZebrowskiM:document-filterrowsbycolumn-types

Conversation

@ZebrowskiM

Copy link
Copy Markdown
Contributor

FilterRowsByColumn only works on float or double columns, but the docs just say "a numeric column." If you pass an integer column, it gets past the first type check and then fails deeper in RangeFilter with "does not have compatible type," which doesn't tell you much. This spells out the supported types, suggests ConvertType for anything else, and mentions that rows with NaN get dropped. I added tests for a double column, NaN rows, and an integer column so the docs stay honest.

Fixes #6891

@ZebrowskiM

Copy link
Copy Markdown
Contributor Author

Tested on an Apple Silicon Mac: Microsoft.ML.Data builds with the new crefs, and all four RangeFilter tests pass on net10.0.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Pull requests submitted by community contributors label Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.90%. Comparing base (f603ac3) to head (9197766).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7966      +/-   ##
==========================================
+ Coverage   70.89%   70.90%   +0.01%     
==========================================
  Files        1421     1421              
  Lines      280133   280155      +22     
  Branches    27601    27601              
==========================================
+ Hits       198591   198647      +56     
+ Misses      73407    73373      -34     
  Partials     8135     8135              
Flag Coverage Δ
Debug 70.90% <100.00%> (+0.01%) ⬆️
production 64.35% <ø> (+0.01%) ⬆️
test 90.74% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
...soft.ML.Data/DataLoadSave/DataOperationsCatalog.cs 83.57% <ø> (ø)
test/Microsoft.ML.Tests/RangeFilterTests.cs 100.00% <100.00%> (ø)

... and 8 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

Labels

community-contribution Pull requests submitted by community contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undocumented Behavior of FilterRowsByColumn

1 participant