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{ 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 lastncolumns instead.dropWhile— drops the first columns while a predicate holds.dropLastWhile— drops the last columns while a predicate holds.take— keeps only the firstncolumns.
Return
Parameters
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{ myColumnGroup.dropCols(2) }
df.select{ "myColumnGroup".dropCols(3) }
Examples for this overload:
See also:
dropLast— drops the lastncolumns instead.dropWhile— drops the first columns while a predicate holds.dropLastWhile— drops the last columns while a predicate holds.take— keeps only the firstncolumns.
Return
Parameters
The number of columns to drop.