take
Returns a DataColumn containing the first n values of this DataColumn.
If n is greater than or equal to the size of this DataColumn, this DataColumn is returned as is.
For more information: See take on the documentation website.
See also:
drop{ predicate: Predicate<T> }— drops every value that matches the predicate.
Return
A DataColumn containing the first n values of this DataColumn, or this DataColumn if n is greater than or equal to its size.
Parameters
The number of values to take. Must not be negative.
Throws
if n is negative.
Returns a DataFrame containing the first n rows.
If n is greater than or equal to the number of rows, the whole DataFrame is returned.
For more information: See take on the documentation website.
See also:
takeWhile— takes the first rows while the predicate holds.filter— keeps every row that matches the predicate.
Return
A DataFrame containing the first n rows, or the whole DataFrame if n is greater than or equal to the number of rows.
Parameters
The number of rows to take. Must not be negative.
Throws
if n is negative.