get
Col
Creates a ColumnAccessor (or SingleColumn) for a column with the given argument which can be either an index (Int) or a reference to a column (String, ColumnPath, KProperty, or ColumnAccessor; any Access APIs).
This is a DSL-shorthand for column and can be both typed and untyped (in case you're supplying a column name, -path, or index). The function can also be called on ColumnGroups to create an accessor for a column inside a ColumnGroup.
For more information: See col on the documentation website.
Check out: Grammar
For example:
df.select{ col<String>("colA") }
df.select{ col(SomeType::colB) }
df.select{ myColumnGroup.col(1) }
Examples for this overload:
df.select{ colsOf<Int>().col(0) }
df.select{ colsOf<String>()[1]}
To create a ColumnAccessor for a specific kind of column with runtime checks, take a look at the functions valueCol, colGroup, and frameCol.
Return
A ColumnAccessor for the column with the given argument if possible, else a SingleColumn.
Parameters
The index of the column.
Type Parameters
The type of the column.
See also
Throws
if the column with the given argument does not exist.
if the index is out of bounds.