Код: Выделить всё
import polars as pl
df = pl.DataFrame({'lag1':[0,1,None],'lag2':[0,None,2]})
df.filter(pl.col('^lag.*$').is_not_null())
ComputeError: The predicate passed to 'LazyFrame.filter' expanded to multiple expressions:
col("lag1").is_not_null().any(),
col("lag2").is_not_null().any(),
This is ambiguous. Try to combine the predicates with the 'all' or `any' expression.
Подробнее здесь: https://stackoverflow.com/questions/756 ... d-to-multi