pypi pyjanitor 0.32.83
v0.32.83

46 minutes ago

Version v0.32.83

This release focuses on improving the robustness and flexibility of column handling, especially when working with generators, iterators, and scalar column labels. Several important bug fixes ensure correct behavior when validating and filling columns, and test coverage has been expanded for edge cases.

New Features

  • Added test coverage for check_column with present=False on a generator, ensuring correct handling of generator inputs in validation logic. (e4929d) (Christopher Pruijsen)

Bug Fixes

  • Fixed an issue where generator column names were exhausted after a single use in check_column, ensuring generators are materialized so they can be reused by callers. (93792f) (Christopher Pruijsen)
  • Ensured that only iterators are materialized in fill_empty, so that scalar values are still correctly rejected by dispatch logic. (e1c5a5) (Christopher Pruijsen)
  • Allowed hashable scalar column labels (such as integers) to be used in fill_empty by wrapping them in a list, mirroring the behavior of check_column. This prevents NotImplementedError for valid scalar labels. (2e1168) (Christopher Pruijsen)
  • Improved column name validation by checking each column name before reading the next and reusing the validated list in fill_empty, preventing errors with invalid or exhausted column names. (1de0de) (Christopher Pruijsen)

Deprecations

  • No deprecations in this release.

Don't miss a new pyjanitor release

NewReleases is sending notifications on new releases.