valueCols

open fun ColumnSet<*>.valueCols(filter: Predicate<ValueColumn<*>> = { true }): ColumnSet<*>

Value Columns

Creates a subset of columns from this that are ValueColumns.

You can optionally use a filter to only include certain columns. valueCols can be called using any of the supported APIs (+ ColumnPath).

This function operates solely on columns at the top-level.

For more information: See valueCols on the documentation website.

Check out: Grammar

For example:

df.select{ valueCols{ it.name.startsWith("my") } }

df.select{ colsAtAnyDepth().valueCols() }

df.select{ "myColGroup".valueCols() }

Examples for this overload:

df.select{ cols{ it.name.startsWith("my") }.valueCols() }

// NOTE: This can be shortened to just:

df.select{ valueCols{ it.name.startsWith("my") } }

Return

A ColumnSet of ValueColumns.

Parameters

filter

An optional predicate to filter the value columns by.

See also


open fun ColumnsSelectionDsl<*>.valueCols(filter: Predicate<ValueColumn<*>> = { true }): ColumnSet<*>

Value Columns

Creates a subset of columns from this that are ValueColumns.

You can optionally use a filter to only include certain columns. valueCols can be called using any of the supported APIs (+ ColumnPath).

This function operates solely on columns at the top-level.

For more information: See valueCols on the documentation website.

Check out: Grammar

For example:

df.select{ valueCols{ it.name.startsWith("my") } }

df.select{ colsAtAnyDepth().valueCols() }

df.select{ "myColGroup".valueCols() }

Examples for this overload:

df.select{ valueCols() }

df.select{ valueCols{ it.any{ it == "Alice" } } }

Return

A ColumnSet of ValueColumns.

Parameters

filter

An optional predicate to filter the value columns by.

See also


open fun SingleColumn<DataRow<*>>.valueCols(filter: Predicate<ValueColumn<*>> = { true }): ColumnSet<*>

Value Columns

Creates a subset of columns from this that are ValueColumns.

You can optionally use a filter to only include certain columns. valueCols can be called using any of the supported APIs (+ ColumnPath).

This function operates solely on columns at the top-level.

For more information: See valueCols on the documentation website.

Check out: Grammar

For example:

df.select{ valueCols{ it.name.startsWith("my") } }

df.select{ colsAtAnyDepth().valueCols() }

df.select{ "myColGroup".valueCols() }

Examples for this overload:

df.select{ myColGroup.valueCols() }

df.select{ myColGroup.valueCols{ it.any{ it == "Alice" } } }

Return

A ColumnSet of ValueColumns.

Parameters

filter

An optional predicate to filter the value columns by.

See also


open fun String.valueCols(filter: Predicate<ValueColumn<*>> = { true }): ColumnSet<*>

Value Columns

Creates a subset of columns from this that are ValueColumns.

You can optionally use a filter to only include certain columns. valueCols can be called using any of the supported APIs (+ ColumnPath).

This function operates solely on columns at the top-level.

For more information: See valueCols on the documentation website.

Check out: Grammar

For example:

df.select{ valueCols{ it.name.startsWith("my") } }

df.select{ colsAtAnyDepth().valueCols() }

df.select{ "myColGroup".valueCols() }

Examples for this overload:

df.select{ "myColGroup".valueCols{ it.any{ it == "Alice" } } }

df.select{ "myColGroup".valueCols() }

Return

A ColumnSet of ValueColumns.

Parameters

filter

An optional predicate to filter the value columns by.

See also


open fun ColumnPath.valueCols(filter: Predicate<ValueColumn<*>> = { true }): ColumnSet<*>

Value Columns

Creates a subset of columns from this that are ValueColumns.

You can optionally use a filter to only include certain columns. valueCols can be called using any of the supported APIs (+ ColumnPath).

This function operates solely on columns at the top-level.

For more information: See valueCols on the documentation website.

Check out: Grammar

For example:

df.select{ valueCols{ it.name.startsWith("my") } }

df.select{ colsAtAnyDepth().valueCols() }

df.select{ "myColGroup".valueCols() }

Examples for this overload:

df.select{ "pathTo"["myGroupCol"].valueCols() }

Return

A ColumnSet of ValueColumns.

Parameters

filter

An optional predicate to filter the value columns by.

See also


open fun KProperty<*>.valueCols(filter: Predicate<ValueColumn<*>> = { true }): ColumnSet<*>

Deprecated

It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html

Value Columns

Creates a subset of columns from this that are ValueColumns.

You can optionally use a filter to only include certain columns. valueCols can be called using any of the supported APIs (+ ColumnPath).

This function operates solely on columns at the top-level.

For more information: See valueCols on the documentation website.

Check out: Grammar

For example:

df.select{ valueCols{ it.name.startsWith("my") } }

df.select{ colsAtAnyDepth().valueCols() }

df.select{ "myColGroup".valueCols() }

Examples for this overload:

df.select{ Type::myColumnGroup.valueCols{ it.any{ it == "Alice" } } }

df.select{ Type::myColumnGroup.valueCols() }

df.select{ DataSchemaType::myColumnGroup.valueCols() }

Return

A ColumnSet of ValueColumns.

Parameters

filter

An optional predicate to filter the value columns by.

See also