We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12474e7 commit 0c55f5fCopy full SHA for 0c55f5f
linopy/common.py
@@ -415,6 +415,7 @@ def filter_nulls_polars(df: pl.DataFrame) -> pl.DataFrame:
415
cond.append(reduce(operator.or_, [pl.col(c).ne(-1) for c in varcols]))
416
if "coeffs" in df.columns:
417
cond.append(pl.col("coeffs").ne(0))
418
+ cond.append(pl.col("coeffs").is_not_null())
419
if "labels" in df.columns:
420
cond.append(pl.col("labels").ne(-1))
421
0 commit comments