Support Expr.assert_all_true
expression, which preserves current values but raises error at runtime if any value is False.
#16120
Labels
enhancement
New feature or an improvement of an existing feature
Description
Hi,
I'm the maintainer of pandera, and we recently released support for validating polars
LazyFrame
s andDataFrame
s: https://pandera.readthedocs.io/en/latest/polars.htmlOne caveat is that there's different behavior between
LazyFrame
andDataFrame
validation: with the former, it only validates schema-level properties (columns and datatypes) because we don't want to materialize any data on aschema.validate
call (e.g. here).We designed this to be forward-looking, and the expected signature of a data-level check should return
LazyFrame
s and leverage the lazy API as much as possible. I think a great next iteration for this integration would be great to be able to do data-level validations that preserves the values of the expression but raises an error at runtime if any value is False:Context: this was suggested by @MarcoGorelli here: https://discord.com/channels/897120336003334214/1160076741394563102/1237738610837557289
The text was updated successfully, but these errors were encountered: