pub enum RankMethod {
Average,
Min,
Max,
First,
Dense,
}Expand description
How tied values share ranks (pandas rank(method=)).
Variants§
Average
Mean of the tied positions (pandas default).
Min
Lowest tied position.
Max
Highest tied position.
First
Distinct, in order of appearance.
Dense
Ties share one rank; the next group is +1 (no gaps).
Trait Implementations§
Source§impl Clone for RankMethod
impl Clone for RankMethod
Source§fn clone(&self) -> RankMethod
fn clone(&self) -> RankMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RankMethod
impl Eq for RankMethod
Source§impl PartialEq for RankMethod
impl PartialEq for RankMethod
impl StructuralPartialEq for RankMethod
Auto Trait Implementations§
impl Freeze for RankMethod
impl RefUnwindSafe for RankMethod
impl Send for RankMethod
impl Sync for RankMethod
impl Unpin for RankMethod
impl UnsafeUnpin for RankMethod
impl UnwindSafe for RankMethod
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