Column Selection by Exclusion
Adding exclusion logic to select
verb.
Tidyverse
%>% select(-size) df
color | value_weight | value_height |
---|---|---|
blue | 3 | 12 |
red | 8 | 45 |
green | 9 | 42 |
Polars
all().exclude("size")) df.select(pl.
shape: (3, 3)
color | value_weight | value_height |
---|---|---|
str | i64 | i64 |
"blue" | 3 | 12 |
"red" | 8 | 45 |
"green" | 9 | 42 |