dropLastCols
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{ myColumnGroup.dropLastCols() }
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:
df.select{ "myColumnGroup".dropLastCols(1) }
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:
df.select{ "pathTo"["myColumnGroup"].dropLastCols(1) }
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.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
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{ DataSchemaType::myColumnGroup.dropLastCols(1) }
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.