Closed philiporlando closed 1 week ago
Thanks for finding this one! See: https://github.com/unionai-oss/pandera/pull/1586
Please keep these bug reports coming! It helps to iron these out before the stable 0.19.0 release
Just pulled the changes within #1586 and can confirm that the expected output is returned! Thanks for addressing these so quickly!
Describe the bug
I have a polars dataframe that should raise multiple schema validation errors. I want to see all of the errors at once, so I'm setting
lazy=True
when performing schema validation. Currently, none of the expected errors are returned. Additionally, an unexpected attribute error is returned when switching from LazyFrame to DataFrame.Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
This code sample should raise schema validation errors on multiple columns but nothing is returned.
When I switch from using a LazyFrame to a DataFrame, I see this error:
AttributeError: 'NoneType' object has no attribute 'with_row_count'
Expected behavior
I would expect the output to match what the pandas dataframe returns:
Desktop (please complete the following information):
Windows 10
Chrome
pandera@git+https://github.com/unionai-oss/pandera.git@870d74a79546ee0ac019d3c347bd31643a66f1cc
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.