Column Selection

Selecting columns with the select verb by column name.

Tidyverse
df %>% select(color, size) 
color size
blue small
red large
green large
Polars
df.select(['color','size'])
shape: (3, 2)
color size
str str
"blue" "small"
"red" "large"
"green" "large"