remove

fun <T> DataFrame<T>.remove(columns: ColumnsSelector<T, *>): DataFrame<T>

The Remove Operation

Removes the specified columns from the original DataFrame and returns a new DataFrame without them.

This can include column groups and nested columns.

See Selecting Columns.

For more information: See remove on the documentation website.

This Remove Overload

Select or express columns using the Columns Selection DSL.

This DSL is initiated by a Columns Selector lambda, which operates in the context of the Columns Selection DSL and expects you to return a SingleColumn or ColumnSet (so, a ColumnsResolver). This is an entity formed by calling any (combination) of the functions in the DSL that is or can be resolved into one or more columns.

The Columns Selection DSL allows using Extension Properties for specifying columns type- and name-safe.

Check out: Columns Selection DSL Grammar

    

See Column Selectors on the documentation website.

For example:

df.remove{ length andage }

df.remove{ cols(1..5) }

df.remove{ colsOf<Double>() }

Parameters

columns

The Columns Selector used to remove the columns of this DataFrame.


fun <T> DataFrame<T>.remove(vararg columns: String): DataFrame<T>

The Remove Operation

Removes the specified columns from the original DataFrame and returns a new DataFrame without them.

This can include column groups and nested columns.

See Selecting Columns.

For more information: See remove on the documentation website.

This Remove Overload

Select single or multiple columns using their names as Strings. (String API).

For example:

df.remove("length", "age")

Parameters

columns

The Column Names used to remove the columns of this DataFrame.


fun <T> DataFrame<T>.remove(vararg columns: ColumnReference<*>): DataFrame<T>

Deprecated

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

The Remove Operation

Removes the specified columns from the original DataFrame and returns a new DataFrame without them.

This can include column groups and nested columns.

See Selecting Columns.

For more information: See remove on the documentation website.

This Remove Overload

Parameters

columns

The Column Accessors used to remove the columns of this DataFrame.


fun <T> DataFrame<T>.remove(vararg columns: KProperty<*>): DataFrame<T>

Deprecated

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

The Remove Operation

Removes the specified columns from the original DataFrame and returns a new DataFrame without them.

This can include column groups and nested columns.

See Selecting Columns.

For more information: See remove on the documentation website.

This Remove Overload

Parameters

columns

The KProperties used to remove the columns of this DataFrame.