pub enum TopN {
First(usize),
Last(usize),
}Expand description
Controls how many rows to take from a sorted dataframe.
Used with SortedDataFrame::topn to retrieve a fixed number of rows
from the top or bottom of a sorted result.
Variants§
First(usize)
Take the first n rows (smallest values).
Last(usize)
Take the last n rows (largest values).
Trait Implementations§
impl Copy for TopN
impl Eq for TopN
impl StructuralPartialEq for TopN
Auto Trait Implementations§
impl Freeze for TopN
impl RefUnwindSafe for TopN
impl Send for TopN
impl Sync for TopN
impl Unpin for TopN
impl UnsafeUnpin for TopN
impl UnwindSafe for TopN
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more