Row Selection with filter
We can use multiple conditions while using filter
.
Tidyverse
%>%
df filter(
> 3,
value_weight > 43) value_height
color | size | value_weight | value_height |
---|---|---|---|
red | large | 8 | 45 |
Polars
(dffilter(
."value_weight") > 3) &
(pl.col("value_height") > 43)) ) (pl.col(
shape: (1, 4)
color | size | value_weight | value_height |
---|---|---|---|
str | str | i64 | i64 |
"red" | "large" | 8 | 45 |