You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial example in the documentation shows validation of a LazyFrame but requires .collect(), which is confusing
The example code has type checking errors with modern type checkers, pylance at "basic"
Return types from validate() don't properly indicate Polars methods
Example of current type errors:
and example in my code: .
This would help new users better understand the intended usage pattern and avoid confusion with type checking.
I am running into a lot of basic level type checking errors using pandera. I'm quite new to type checking, but trying to write more robust code and thus use proper validation on my data when using polars.
Wording
The docs also say which we then use to validate a polars.LazyFrame object. Which is weird since the code beneath needs to 'collect' to validate, thus forgoing the lazy optimizations?
Suggested fix for documentation
I don't really know what the cause of this is or how to improve it, but i keep running into a lot of type errors when using pandera.
Suggested Improvements:
Update the initial example to clearly show the recommended validation pattern
Add proper type hints for Pandera's return types
Move the explanation of LazyFrame vs DataFrame validation earlier in the docs
The text was updated successfully, but these errors were encountered:
Location of the documentation
https://pandera.readthedocs.io/en/latest/polars.html
Documentation problem
Issues:
.collect()
, which is confusingExample of current type errors:
and example in my code: .
This would help new users better understand the intended usage pattern and avoid confusion with type checking.
I am running into a lot of basic level type checking errors using pandera. I'm quite new to type checking, but trying to write more robust code and thus use proper validation on my data when using polars.
Wording
The docs also say
which we then use to validate a polars.LazyFrame object.
Which is weird since the code beneath needs to 'collect' to validate, thus forgoing the lazy optimizations?Suggested fix for documentation
I don't really know what the cause of this is or how to improve it, but i keep running into a lot of type errors when using pandera.
Suggested Improvements:
The text was updated successfully, but these errors were encountered: