polars_lazy::frame::pivot

Function pivot_stable

Source
pub fn pivot_stable<I0, I1, I2, S0, S1, S2>(
    df: &DataFrame,
    on: I0,
    index: Option<I1>,
    values: Option<I2>,
    sort_columns: bool,
    agg_expr: Option<Expr>,
    separator: Option<&str>,
) -> PolarsResult<DataFrame>
where I0: IntoIterator<Item = S0>, I1: IntoIterator<Item = S1>, I2: IntoIterator<Item = S2>, S0: Into<PlSmallStr>, S1: Into<PlSmallStr>, S2: Into<PlSmallStr>,
Available on crate feature pivot only.