Skip to content

v0.32.85

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 01:20

Version v0.32.85

This release introduces the new flag_outliers function for robust outlier detection using IQR and Z-score methods, along with a series of enhancements and bug fixes to improve its reliability, usability, and documentation. The update focuses on making outlier detection more accurate, handling edge cases, and providing clearer error messages.

New Features

  • Added flag_outliers function to detect outliers in a numeric column using IQR or Z-score methods, with sensible default thresholds and proper handling of missing values. (2cc431) (Cursor Agent, Trapti Kulshrestha, Eric Ma)
  • Improved flag_outliers to handle infinities gracefully, reject unsupported column types (bool and complex), accept any numbers.Real as a threshold, compute IQR fences in float64, and suffix the last MultiIndex level for the flag column. (352e26) (Cursor Agent, Eric Ma)

Bug Fixes

  • Fixed flag_outliers to treat a single finite value as a constant, preventing all rows from being incorrectly flagged due to rounding errors. Now raises ValueError for unhashable column labels. (3ac963) (Cursor Agent, Eric Ma)
  • Improved performance of constant checks in flag_outliers and ensured Z-scores remain finite even with extreme values. Now raises ValueError for unhashable flag names and removes outdated documentation notes. (26d7ba) (Cursor Agent, Eric Ma)
  • Enhanced error handling in flag_outliers: oversized thresholds now raise ValueError, ambiguous column selections (e.g., duplicate names or partial MultiIndex keys) are rejected, and float64 overflow is silenced during cutoff calculations. Removed unreachable code branches. (19e040) (Cursor Agent, Eric Ma)

Deprecations

  • No deprecations in this release.

Documentation

  • Added a changelog entry for flag_outliers and improved documentation by moving technical notes to a dedicated section. (614bbc, d8a5ca) (Cursor Agent, Eric Ma)