/// Perform an inner join on two DataFrames.
///
/// # Example
///
/// ```
/// # use polars_core::prelude::*;
/// fn join_dfs(left: &DataFrame, right: &DataFrame) -> Result<DataFrame> {
///     left.inner_join(right, ["join_column_left"], ["join_column_right"])
/// }
/// ```
Perform an inner join on two DataFrames.
Perform an inner join on two DataFrames .
pub fn inner_join<I, S>(&self, other: &DataFrame, left_on: I, right_on: I) -> Result<DataFrame>
    where
        I: IntoIterator<Item = S>,
        S: AsRef<str>,
    {
        self.join(other, left_on, right_on, JoinType::Inner, None)
    }
pub fn inner_join < I , S > ( & self , other : & DataFrame , left_on : I , right_on : I ) -> Result < DataFrame > where I : IntoIterator < Item = S > , S : AsRef < str > , { self . join ( other , left_on , right_on , JoinType :: Inner , None ) }
Perform an inner join on two DataFrames.
Perform an inner join on two DataFrames .
&self
other
&DataFrame
left_on
I
right_on
I
example
None
use polars_core::prelude::*;
fn join_dfs(left: &DataFrame, right: &DataFrame) -> Result {
left.inner_join(right, ["join_column_left"], ["join_column_right"])
}
```
fn join_dfs ( left : &DataFrame right : &DataFrame ) - > Result { left . inner_join ( right [ " join_column_left " ] [ " join_column_right " ] ) } ` ` `