Dataframe 0.14 Help

getColumn

Return column by column name or column selector as DataColumn. Throws exception if requested column doesn't exist.

df.getColumn { age }
val age by column<Int>() df.getColumn { age }
df.getColumn("age")

getColumnOrNull

Return top-level column by column name or column selector as DataColumn or null if requested column doesn't exist.

df.getColumnOrNull { age }
val age by column<Int>() df.getColumnOrNull(age)
df.getColumnOrNull("age")

getColumnGroup

Return top-level column by column name or column selector as ColumnGroup. Throws exception if requested column doesn't exist or is not a ColumnGroup.

df.getColumnGroup { name }
val name by columnGroup() df.getColumnGroup(name)
df.getColumnGroup("name")

getColumns

Return list of selected columns.

df.getColumns { age and name }
val age by column<Int>() val name by columnGroup() df.getColumns { age and name }
df.getColumns("age", "name")
Last modified: 27 September 2024