Open FriedLabJHU opened 4 months ago
This also holds for DataFrame and LazyFrame. Here's an overview:
Object | .drop_nulls() | .drop_nans() | .has_nulls() | .has_nans() |
---|---|---|---|---|
DataFrame | ✅ | |||
LazyFrame | ✅ | |||
Series | ✅ | ✅ | ✅ | |
Expr | ✅ | ✅ | ✅ | |
List | ✅ |
These all seem like they would be useful additions and would likely be necessary for a v1.0 release, thank you @jeroenjanssens for this table. I will work on PRs for these in the meantime.
Description
There is no behavior to remove
NaN
fromExpr.list
that functions similarly toExpr.list.drop_nulls()
. This would be nice to have, sinceExpr.drop_nans()
already exists.The only work around appears to involve
Expr.list.eval
as shown below: