dropLast
Drop Last (Cols)
This operation collects all columns from this except the last 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, dropLast is called dropLastCols 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}.dropLast(5) }
df.select{ myColumnGroup.dropLastCols(2) }
df.select{ "myColumnGroup".dropLastCols(3) }
Examples for this overload:
df.select{ colsOf<String>().dropLast(2) }
df.select{ cols{ .. }.dropLast() }
See also:
drop— drops the firstncolumns instead.dropWhile— drops the first columns while a predicate holds.dropLastWhile— drops the last columns while a predicate holds.takeLast— keeps only the lastncolumns.
Return
Parameters
The number of columns to drop.
Drop Last (Cols)
This operation collects all columns from this except the last 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, dropLast is called dropLastCols 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}.dropLast(5) }
df.select{ myColumnGroup.dropLastCols(2) }
df.select{ "myColumnGroup".dropLastCols(3) }
Examples for this overload:
See also:
drop— drops the firstncolumns instead.dropWhile— drops the first columns while a predicate holds.dropLastWhile— drops the last columns while a predicate holds.takeLast— keeps only the lastncolumns.
Return
Parameters
The number of columns to drop.