BUG: Polars DataFrameModel.validate crashes with sample
specified
#1912
Labels
bug
Something isn't working
sample
specified
#1912
Describe the bug
A clear and concise description of what the bug is.
Code Sample, a copy-pastable example
Expected behavior
Sample should work, or should raise a NotImplementedError if not supported.
Desktop (please complete the following information):
Additional context
I came across this looking at running mypy over pandera.
The implementation calls .sample which is a pl.DataFrame method, but there is no lazy equivalent.
pola-rs/polars#3933 discusses this with some potential workarounds listed, e.g.
lazy_df.with_row_index().filter(col("index").hash(seed)%10 == 1).drop("index")
The text was updated successfully, but these errors were encountered: