colsOfKind
Cols Of Kind
Creates a subset of columns from this that are of the given kind(s).
You can optionally use a filter to only include certain columns. colsOfKind can be called using any of the supported APIs (+ ColumnPath).
This function operates solely on columns at the top-level.
For more information: See colsOfKind on the documentation website.
Check out: Grammar
For example:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
df.select{ colsOfKind(Group) }
df.select{ "myColGroup".colsOfKind(Frame) }
Examples for this overload:
df.select{ cols{ it.name.startsWith("my") }.colsOfKind(Value, Frame) }
// NOTE: This can be shortened to just:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
Return
A ColumnSet of columns of the given kind(s).
Parameters
An optional predicate to filter the columns of given kind(s) by.
The kind of columns to include.
Other optional kinds of columns to include.
See also
Cols Of Kind
Creates a subset of columns from this that are of the given kind(s).
You can optionally use a filter to only include certain columns. colsOfKind can be called using any of the supported APIs (+ ColumnPath).
This function operates solely on columns at the top-level.
For more information: See colsOfKind on the documentation website.
Check out: Grammar
For example:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
df.select{ colsOfKind(Group) }
df.select{ "myColGroup".colsOfKind(Frame) }
Examples for this overload:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
Return
A ColumnSet of columns of the given kind(s).
Parameters
An optional predicate to filter the columns of given kind(s) by.
The kind of columns to include.
Other optional kinds of columns to include.
See also
Cols Of Kind
Creates a subset of columns from this that are of the given kind(s).
You can optionally use a filter to only include certain columns. colsOfKind can be called using any of the supported APIs (+ ColumnPath).
This function operates solely on columns at the top-level.
For more information: See colsOfKind on the documentation website.
Check out: Grammar
For example:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
df.select{ colsOfKind(Group) }
df.select{ "myColGroup".colsOfKind(Frame) }
Examples for this overload:
df.select{ myColumnGroup.colsOfKind(Value, Frame) }
Return
A ColumnSet of columns of the given kind(s).
Parameters
An optional predicate to filter the columns of given kind(s) by.
The kind of columns to include.
Other optional kinds of columns to include.
See also
Cols Of Kind
Creates a subset of columns from this that are of the given kind(s).
You can optionally use a filter to only include certain columns. colsOfKind can be called using any of the supported APIs (+ ColumnPath).
This function operates solely on columns at the top-level.
For more information: See colsOfKind on the documentation website.
Check out: Grammar
For example:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
df.select{ colsOfKind(Group) }
df.select{ "myColGroup".colsOfKind(Frame) }
Examples for this overload:
df.select{ "myColumnGroup".colsOfKind(Value, Frame) }
Return
A ColumnSet of columns of the given kind(s).
Parameters
An optional predicate to filter the columns of given kind(s) by.
The kind of columns to include.
Other optional kinds of columns to include.
See also
Cols Of Kind
Creates a subset of columns from this that are of the given kind(s).
You can optionally use a filter to only include certain columns. colsOfKind can be called using any of the supported APIs (+ ColumnPath).
This function operates solely on columns at the top-level.
For more information: See colsOfKind on the documentation website.
Check out: Grammar
For example:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
df.select{ colsOfKind(Group) }
df.select{ "myColGroup".colsOfKind(Frame) }
Examples for this overload:
df.select{ "pathTo"["myColumnGroup"].colsOfKind(Value, Frame) }
Return
A ColumnSet of columns of the given kind(s).
Parameters
An optional predicate to filter the columns of given kind(s) by.
The kind of columns to include.
Other optional kinds of columns to include.
See also
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols Of Kind
Creates a subset of columns from this that are of the given kind(s).
You can optionally use a filter to only include certain columns. colsOfKind can be called using any of the supported APIs (+ ColumnPath).
This function operates solely on columns at the top-level.
For more information: See colsOfKind on the documentation website.
Check out: Grammar
For example:
df.select{ colsOfKind(Value, Frame) { it.name.startsWith("my") } }
df.select{ colsOfKind(Group) }
df.select{ "myColGroup".colsOfKind(Frame) }
Examples for this overload:
df.select{ Type::myColumnGroup.colsOfKind(Value, Frame) }
Return
A ColumnSet of columns of the given kind(s).
Parameters
An optional predicate to filter the columns of given kind(s) by.
The kind of columns to include.
Other optional kinds of columns to include.