Trait polars::prelude::CrossJoin

source ·
pub trait CrossJoin: IntoDf {
    // Provided methods
    fn cross_join_dfs(
        &self,
        other: &DataFrame,
        slice: Option<(i64, usize)>,
        parallel: bool
    ) -> Result<(DataFrame, DataFrame), PolarsError> { ... }
    fn cross_join(
        &self,
        other: &DataFrame,
        suffix: Option<&str>,
        slice: Option<(i64, usize)>
    ) -> Result<DataFrame, PolarsError> { ... }
}
Available on crate feature polars-ops only.

Provided Methods§

source

fn cross_join_dfs( &self, other: &DataFrame, slice: Option<(i64, usize)>, parallel: bool ) -> Result<(DataFrame, DataFrame), PolarsError>

source

fn cross_join( &self, other: &DataFrame, suffix: Option<&str>, slice: Option<(i64, usize)> ) -> Result<DataFrame, PolarsError>

Creates the Cartesian product from both frames, preserves the order of the left keys.

Implementors§