dropCols

Drop (Cols)

This operation collects all columns from this except the first n into a ColumnSet.

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

Any Access APIs can be used as receiver for these functions.

NOTE: To avoid ambiguity, drop is called dropCols when called on a ColumnGroup.

For more information: See drop(Last)(Cols)(While) on the documentation website.

Check out: Grammar

Examples:

df.select{ cols{ "my" init.name}.drop(5) }

df.select{ drop(1) }

df.select{ myColumnGroup.dropCols(2) }

df.select{ "myColumnGroup".dropCols(3) }

Examples for this overload:

df.select{ myColumnGroup.dropCols(1) }

See also:

  • dropLast — drops the last n columns instead.

  • dropWhile — drops the first columns while a predicate holds.

  • dropLastWhile — drops the last columns while a predicate holds.

  • take — keeps only the first n columns.

Return

A ColumnSet containing all columns except the first n.

Parameters

n

The number of columns to drop.


open fun String.dropCols(n: Int): ColumnSet<*>

Drop (Cols)

This operation collects all columns from this except the first n into a ColumnSet.

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

Any Access APIs can be used as receiver for these functions.

NOTE: To avoid ambiguity, drop is called dropCols when called on a ColumnGroup.

For more information: See drop(Last)(Cols)(While) on the documentation website.

Check out: Grammar

Examples:

df.select{ cols{ "my" init.name}.drop(5) }

df.select{ drop(1) }

df.select{ myColumnGroup.dropCols(2) }

df.select{ "myColumnGroup".dropCols(3) }

Examples for this overload:

df.select{ "myColumnGroup".dropCols(1) }

See also:

  • dropLast — drops the last n columns instead.

  • dropWhile — drops the first columns while a predicate holds.

  • dropLastWhile — drops the last columns while a predicate holds.

  • take — keeps only the first n columns.

Return

A ColumnSet containing all columns except the first n.

Parameters

n

The number of columns to drop.


open fun ColumnPath.dropCols(n: Int): ColumnSet<*>

Drop (Cols)

This operation collects all columns from this except the first n into a ColumnSet.

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

Any Access APIs can be used as receiver for these functions.

NOTE: To avoid ambiguity, drop is called dropCols when called on a ColumnGroup.

For more information: See drop(Last)(Cols)(While) on the documentation website.

Check out: Grammar

Examples:

df.select{ cols{ "my" init.name}.drop(5) }

df.select{ drop(1) }

df.select{ myColumnGroup.dropCols(2) }

df.select{ "myColumnGroup".dropCols(3) }

Examples for this overload:

df.select{ "pathTo"["myColumnGroup"].dropCols(1) }

See also:

  • dropLast — drops the last n columns instead.

  • dropWhile — drops the first columns while a predicate holds.

  • dropLastWhile — drops the last columns while a predicate holds.

  • take — keeps only the first n columns.

Return

A ColumnSet containing all columns except the first n.

Parameters

n

The number of columns to drop.


open fun KProperty<*>.dropCols(n: Int): ColumnSet<*>

Deprecated

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

Drop (Cols)

This operation collects all columns from this except the first n into a ColumnSet.

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

Any Access APIs can be used as receiver for these functions.

NOTE: To avoid ambiguity, drop is called dropCols when called on a ColumnGroup.

For more information: See drop(Last)(Cols)(While) on the documentation website.

Check out: Grammar

Examples:

df.select{ cols{ "my" init.name}.drop(5) }

df.select{ drop(1) }

df.select{ myColumnGroup.dropCols(2) }

df.select{ "myColumnGroup".dropCols(3) }

Examples for this overload:

df.select{ DataSchemaType::myColumnGroup.dropCols(1) }

See also:

  • dropLast — drops the last n columns instead.

  • dropWhile — drops the first columns while a predicate holds.

  • dropLastWhile — drops the last columns while a predicate holds.

  • take — keeps only the first n columns.

Return

A ColumnSet containing all columns except the first n.

Parameters

n

The number of columns to drop.