feat: make missing ratio warning threshold configurable - #9
Conversation
codeMaestro78
commented
Jan 20, 2026
- Add MISSING_RATIO_WARNING_THRESHOLD constant (default 0.5)
- Add missing_ratio_warning_threshold parameter to DataAnalyzer constructor
- Replace magic number 0.5 with configurable parameter
- Make warning message dynamic to show actual threshold percentage
- Fix linting issues: line length, variable naming, and formatting
- Add MISSING_RATIO_WARNING_THRESHOLD constant (default 0.5) - Add missing_ratio_warning_threshold parameter to DataAnalyzer constructor - Replace magic number 0.5 with configurable parameter - Make warning message dynamic to show actual threshold percentage - Fix linting issues: line length, variable naming, and formatting
The latest updates on your projects. Learn more about Vercel for GitHub.
|
>> >> - Add MISSING_RATIO_WARNING_THRESHOLD constant (default 0.5) >> - Add missing_ratio_warning_threshold parameter to DataAnalyzer constructor >> - Replace magic number 0.5 with configurable parameter >> - Make warning message dynamic to show actual threshold percentage >> - Fix linting issues: line length, variable naming, and formatting
There was a problem hiding this comment.
Pull request overview
This pull request adds a configurable threshold for missing ratio warnings while also introducing several other changes that extend beyond the stated scope. The main feature allows users to customize when warnings are generated for columns with high missing value ratios (default 50%).
Changes:
- Added configurable missing_ratio_warning_threshold parameter to DataAnalyzer constructor
- Added comprehensive input validation for the analyze() method
- Changed class_distribution structure from dict to list format (breaking API change)
- Enhanced docstrings for multiple methods
- Modified categorical type inference logic for numeric columns
- Simplified null/NaN detection using pandas.isna()
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
codeMaestro78
commented
Jan 20, 2026
The issue has been resolved. |
- Document that class_distribution is a list of dicts with label/count/ratio keys - Address API consistency concerns by clearly specifying the data structure - No functional changes, only documentation improvement
Uh oh!
There was an error while loading. Please reload this page.