colsOfKind

open fun ColumnSet<*>.colsOfKind(kind: ColumnKind, vararg others: ColumnKind, filter: (ColumnWithPath<*>) -> Boolean = { true }): ColumnSet<*>

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

filter

An optional predicate to filter the columns of given kind(s) by.

kind

The kind of columns to include.

others

Other optional kinds of columns to include.

See also


open fun ColumnsSelectionDsl<*>.colsOfKind(kind: ColumnKind, vararg others: ColumnKind, filter: (ColumnWithPath<*>) -> Boolean = { true }): ColumnSet<*>

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

filter

An optional predicate to filter the columns of given kind(s) by.

kind

The kind of columns to include.

others

Other optional kinds of columns to include.

See also


open fun SingleColumn<DataRow<*>>.colsOfKind(kind: ColumnKind, vararg others: ColumnKind, filter: (ColumnWithPath<*>) -> Boolean = { true }): ColumnSet<*>

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

filter

An optional predicate to filter the columns of given kind(s) by.

kind

The kind of columns to include.

others

Other optional kinds of columns to include.

See also


open fun String.colsOfKind(kind: ColumnKind, vararg others: ColumnKind, filter: (ColumnWithPath<*>) -> Boolean = { true }): ColumnSet<*>

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

filter

An optional predicate to filter the columns of given kind(s) by.

kind

The kind of columns to include.

others

Other optional kinds of columns to include.

See also


open fun ColumnPath.colsOfKind(kind: ColumnKind, vararg others: ColumnKind, filter: (ColumnWithPath<*>) -> Boolean = { true }): ColumnSet<*>

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

filter

An optional predicate to filter the columns of given kind(s) by.

kind

The kind of columns to include.

others

Other optional kinds of columns to include.

See also


open fun KProperty<*>.colsOfKind(kind: ColumnKind, vararg others: ColumnKind, filter: (ColumnWithPath<*>) -> Boolean = { true }): ColumnSet<*>

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

filter

An optional predicate to filter the columns of given kind(s) by.

kind

The kind of columns to include.

others

Other optional kinds of columns to include.

See also