frameCols

open fun ColumnSet<*>.frameCols(filter: Predicate<FrameColumn<*>> = { true }): ColumnSet<DataFrame<*>>

Frame Columns

Creates a subset of columns from this that are FrameColumns.

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

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

For more information: See frameCols on the documentation website.

Check out: Grammar

For example:

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

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

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

Examples for this overload:

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

// NOTE: This can be shortened to just:

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

Return

A ColumnSet of FrameColumns.

Parameters

filter

An optional predicate to filter the frame columns by.

See also


open fun ColumnsSelectionDsl<*>.frameCols(filter: Predicate<FrameColumn<*>> = { true }): ColumnSet<DataFrame<*>>

Frame Columns

Creates a subset of columns from this that are FrameColumns.

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

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

For more information: See frameCols on the documentation website.

Check out: Grammar

For example:

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

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

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

Examples for this overload:

df.select{ frameCols() }

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

Return

A ColumnSet of FrameColumns.

Parameters

filter

An optional predicate to filter the frame columns by.

See also


open fun SingleColumn<DataRow<*>>.frameCols(filter: Predicate<FrameColumn<*>> = { true }): ColumnSet<DataFrame<*>>

Frame Columns

Creates a subset of columns from this that are FrameColumns.

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

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

For more information: See frameCols on the documentation website.

Check out: Grammar

For example:

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

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

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

Examples for this overload:

df.select{ myColGroup.frameCols() }

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

Return

A ColumnSet of FrameColumns.

Parameters

filter

An optional predicate to filter the frame columns by.

See also


open fun String.frameCols(filter: Predicate<FrameColumn<*>> = { true }): ColumnSet<DataFrame<*>>

Frame Columns

Creates a subset of columns from this that are FrameColumns.

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

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

For more information: See frameCols on the documentation website.

Check out: Grammar

For example:

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

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

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

Examples for this overload:

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

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

Return

A ColumnSet of FrameColumns.

Parameters

filter

An optional predicate to filter the frame columns by.

See also


open fun ColumnPath.frameCols(filter: Predicate<FrameColumn<*>> = { true }): ColumnSet<DataFrame<*>>

Frame Columns

Creates a subset of columns from this that are FrameColumns.

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

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

For more information: See frameCols on the documentation website.

Check out: Grammar

For example:

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

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

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

Examples for this overload:

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

Return

A ColumnSet of FrameColumns.

Parameters

filter

An optional predicate to filter the frame columns by.

See also


open fun KProperty<*>.frameCols(filter: Predicate<FrameColumn<*>> = { true }): ColumnSet<DataFrame<*>>

Deprecated

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

Frame Columns

Creates a subset of columns from this that are FrameColumns.

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

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

For more information: See frameCols on the documentation website.

Check out: Grammar

For example:

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

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

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

Examples for this overload:

df.select{ colGroup(Type::myColGroup).frameCols{ it.name.startsWith("my") } }

df.select{ Type::myColGroup.frameCols() }

df.select{ DataSchemaType::myColGroup.frameCols() }

Return

A ColumnSet of FrameColumns.

Parameters

filter

An optional predicate to filter the frame columns by.

See also