pub struct MergeAsofOptions {
pub allow_exact_matches: bool,
pub tolerance: Option<f64>,
pub by: Option<Vec<String>>,
}Expand description
Options for asof merge operations.
Matches pandas merge_asof parameters:
allow_exact_matches: If true (default), allow matching with same key valuetolerance: Maximum distance between keys for a matchby: Columns to match exactly before asof matching
Fields§
§allow_exact_matches: boolIf true (default), allow matching with the same ‘on’ value. If false, don’t match rows where left key == right key exactly.
tolerance: Option<f64>Maximum distance between left and right keys for a valid match. None means no tolerance limit.
by: Option<Vec<String>>Columns to match exactly before performing asof merge. Acts like an equi-join on these columns first.
Implementations§
Source§impl MergeAsofOptions
impl MergeAsofOptions
Sourcepub fn allow_exact_matches(self, allow: bool) -> Self
pub fn allow_exact_matches(self, allow: bool) -> Self
Set whether exact matches are allowed.
Trait Implementations§
Source§impl Clone for MergeAsofOptions
impl Clone for MergeAsofOptions
Source§fn clone(&self) -> MergeAsofOptions
fn clone(&self) -> MergeAsofOptions
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 moreSource§impl Debug for MergeAsofOptions
impl Debug for MergeAsofOptions
Source§impl Default for MergeAsofOptions
impl Default for MergeAsofOptions
Source§fn default() -> MergeAsofOptions
fn default() -> MergeAsofOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MergeAsofOptions
impl RefUnwindSafe for MergeAsofOptions
impl Send for MergeAsofOptions
impl Sync for MergeAsofOptions
impl Unpin for MergeAsofOptions
impl UnsafeUnpin for MergeAsofOptions
impl UnwindSafe for MergeAsofOptions
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