Row Selection with filter verb

We can select rows by using the filter verb. In the filter verb we pass the condition we are using to select the rows.

Tidyverse
df %>% filter(value_weight > 3)
color size value_weight value_height
red large 8 45
green large 9 42
Polars
df.filter(pl.col("value_weight") > 3)
shape: (2, 4)
color size value_weight value_height
str str i64 i64
"red" "large" 8 45
"green" "large" 9 42