Dataframe 0.14 Help

Get columns

Get single column by column name:

df.age df.name.lastName
val age by column<Int>() val name by columnGroup() val lastName by name.column<String>() df[age] df[lastName]
df["age"] df["name"]["firstName"]

Get single column by index (starting from 0):

df.getColumn(2) df.getColumnGroup(0).getColumn(1)
Last modified: 27 September 2024