Closed philiporlando closed 1 month ago
~It's difficult to trust that custom checks are actually working with the LazyFrame
in this reprex after discovering #1566.~
Edit: LazyFrame validation does not apply to data-level checks by design.
@philiporlando see #1572
@cosmicBboy, many thanks for resolving this so quickly!
Code Sample, a copy-pastable example
I'm seeing an error when trying to perform schema validation with custom checks on a polars dataframe:
pandera.errors.SchemaError: ComputeError("custom python function failed: cannot unpack series of type 'str' into 'bool'")
Removing the phone check will avoid this error, but then a warning about a missing
return_dtype
value is returned:Expected behavior
Schema validation should run successfully for this DataFrame when custom checks are included alongside built-in check methods.
Desktop (please complete the following information):
pandera==0.19.0b1