diff --git a/src/dataframe.rs b/src/dataframe.rs index 6aecb6f6..f6865046 100644 --- a/src/dataframe.rs +++ b/src/dataframe.rs @@ -895,8 +895,8 @@ impl JsDataFrame { pub fn pivot_expr( &self, values: Vec, + on: Vec, index: Vec, - columns: Vec, aggregate_expr: Option>, maintain_order: bool, sort_columns: bool, @@ -908,8 +908,8 @@ impl JsDataFrame { }; fun( &self.df, - index, - Some(columns), + on, + Some(index), Some(values), sort_columns, aggregate_expr.map(|e| e.0 as Expr),