Select columns
Two ways to create DataFrame with a subset of columns:
selecting:
Properties
Strings
df.select { age and weight }df.select { "age" and "weight" }
df.select("age", "weight")Related operations: remove
See column selectors
indexing:
df["age", "weight"]