drop

open fun <C> ColumnSet<C>.drop(n: Int): ColumnSet<C>

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{ colsOf<String>().drop(2) }

df.select{ cols{ .. }.drop(2) }

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.


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{ drop(5) }

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.