invoke

open operator fun <C> ColumnsSelector<T, C>.invoke(): ColumnsResolver<C>

Invokes the given ColumnsSelector using this ColumnsSelectionDsl.


open operator fun <C, R> SingleColumn<DataRow<C>>.invoke(selector: ColumnsSelector<C, R>): ColumnSet<R>

Select from ColumnGroup

Perform a selection of columns using the Columns Selection DSL on any ColumnGroup. This is more powerful than the cols filter, because now all operations of the DSL are at your disposal.

The scope of the new DSL instance is relative to the ColumnGroup you are selecting from.

The invoke operator is overloaded to work as a shortcut for this method.

For more information: See Select from Column Group on the documentation website.

Check out: Grammar

For example:

df.select{ myColGroup.select{ someCol andcolsOf<String>() } }

df.select{ "myGroupCol" {"colA" and expr{ 0 } }}

df.select{ "pathTo"["myGroupCol"].select{ "colA" and "colB" } }

df.select{ it["myGroupCol"].asColumnGroup()() {"colA" and "colB" }}

Examples for this overload:

df.select{ myColGroup.select{ someCol andcolsOf<String>() } }

df.select{ myColGroup {colA andcolB }}

    

See also except/allExcept for the inverted operation of this function.

Receiver

The ColumnGroup to select from.

Return

A ColumnSet containing the columns selected by selector.

Parameters

selector

The ColumnsSelector to use for the selection.

See also

Throws


open operator fun <R> String.invoke(selector: ColumnsSelector<*, R>): ColumnSet<R>

Select from ColumnGroup

Perform a selection of columns using the Columns Selection DSL on any ColumnGroup. This is more powerful than the cols filter, because now all operations of the DSL are at your disposal.

The scope of the new DSL instance is relative to the ColumnGroup you are selecting from.

The invoke operator is overloaded to work as a shortcut for this method.

For more information: See Select from Column Group on the documentation website.

Check out: Grammar

For example:

df.select{ myColGroup.select{ someCol andcolsOf<String>() } }

df.select{ "myGroupCol" {"colA" and expr{ 0 } }}

df.select{ "pathTo"["myGroupCol"].select{ "colA" and "colB" } }

df.select{ it["myGroupCol"].asColumnGroup()() {"colA" and "colB" }}

Examples for this overload:

df.select{ "myColGroup".select{ someCol andcolsOf<String>() } }

df.select{ "myColGroup" {colA andcolB }}

    

See also except/allExcept for the inverted operation of this function.

Receiver

The ColumnGroup to select from.

Return

A ColumnSet containing the columns selected by selector.

Parameters

selector

The ColumnsSelector to use for the selection.

See also

Throws


open operator fun <R> ColumnPath.invoke(selector: ColumnsSelector<*, R>): ColumnSet<R>

Select from ColumnGroup

Perform a selection of columns using the Columns Selection DSL on any ColumnGroup. This is more powerful than the cols filter, because now all operations of the DSL are at your disposal.

The scope of the new DSL instance is relative to the ColumnGroup you are selecting from.

The invoke operator is overloaded to work as a shortcut for this method.

For more information: See Select from Column Group on the documentation website.

Check out: Grammar

For example:

df.select{ myColGroup.select{ someCol andcolsOf<String>() } }

df.select{ "myGroupCol" {"colA" and expr{ 0 } }}

df.select{ "pathTo"["myGroupCol"].select{ "colA" and "colB" } }

df.select{ it["myGroupCol"].asColumnGroup()() {"colA" and "colB" }}

Examples for this overload:

df.select{ "pathTo"["myColGroup"].select{ someCol andcolsOf<String>() } }

df.select{ "pathTo"["myColGroup"] {colA andcolB }}

df.select{ pathOf("pathTo", "myColGroup").select{ someCol andcolsOf<String>() } }

df.select{ pathOf("pathTo", "myColGroup")() {someCol andcolsOf<String>() }}

    

See also except/allExcept for the inverted operation of this function.

Receiver

The ColumnGroup to select from.

Return

A ColumnSet containing the columns selected by selector.

Parameters

selector

The ColumnsSelector to use for the selection.

See also

Throws


open operator fun <C, R> KProperty<C>.invoke(selector: ColumnsSelector<C, R>): ColumnSet<R>

Deprecated

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

Select from ColumnGroup

Perform a selection of columns using the Columns Selection DSL on any ColumnGroup. This is more powerful than the cols filter, because now all operations of the DSL are at your disposal.

The scope of the new DSL instance is relative to the ColumnGroup you are selecting from.

The invoke operator is overloaded to work as a shortcut for this method.

For more information: See Select from Column Group on the documentation website.

Check out: Grammar

For example:

df.select{ myColGroup.select{ someCol andcolsOf<String>() } }

df.select{ "myGroupCol" {"colA" and expr{ 0 } }}

df.select{ "pathTo"["myGroupCol"].select{ "colA" and "colB" } }

df.select{ it["myGroupCol"].asColumnGroup()() {"colA" and "colB" }}

Examples for this overload:

df.select{ Type::myColGroup.select{ someCol andcolsOf<String>() } }

df.select{ DataSchemaType::myColGroup {colA andcolB }}

    

See also except/allExcept for the inverted operation of this function.

Receiver

The ColumnGroup to select from.

Return

A ColumnSet containing the columns selected by selector.

Parameters

selector

The ColumnsSelector to use for the selection.

See also

Throws