filter_topn
Sort a dataset by selected columns and pick the first N rows (or exclude them).
An input dataset to filter.
A new dataset containing the same columns as the input dataset but only those rows passing the filter condition.
How many of the leading rows to keep after sorting.
One or more columns to sort by before picking the first n rows. May be a column name or a list of column names.
- salary
- [‘salary’, ‘time_spend_company’, ‘last_evaluation’]
If true
, the first n rows after sorting will be excluded from the resulting dataset.
Whether to sort in ascending order rather than descending.
Was this page helpful?