pub trait AsofJoinBy: IntoDf {
// Provided method
fn join_asof_by<I, S>(
&self,
other: &DataFrame,
left_on: &str,
right_on: &str,
left_by: I,
right_by: I,
strategy: AsofStrategy,
tolerance: Option<AnyValue<'static>>,
) -> Result<DataFrame, PolarsError>
where I: IntoIterator<Item = S>,
S: AsRef<str> { ... }
}
Available on crate feature
polars-ops
only.Provided Methods§
Sourcefn join_asof_by<I, S>(
&self,
other: &DataFrame,
left_on: &str,
right_on: &str,
left_by: I,
right_by: I,
strategy: AsofStrategy,
tolerance: Option<AnyValue<'static>>,
) -> Result<DataFrame, PolarsError>
fn join_asof_by<I, S>( &self, other: &DataFrame, left_on: &str, right_on: &str, left_by: I, right_by: I, strategy: AsofStrategy, tolerance: Option<AnyValue<'static>>, ) -> Result<DataFrame, PolarsError>
This is similar to a left-join except that we match on nearest key
rather than equal keys. The keys must be sorted to perform an asof join.
This is a special implementation of an asof join that searches for the
nearest keys within a subgroup set by by
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.