Column Selection
Selecting columns with the select
verb based on column type.
Tidyverse
%>% select_if(is.numeric) df
value_weight | value_height |
---|---|
3 | 12 |
8 | 45 |
9 | 42 |
Polars
df.select(pl.col(pl.Int64))
shape: (3, 2)
value_weight | value_height |
---|---|
i64 | i64 |
3 | 12 |
8 | 45 |
9 | 42 |