Apply a sort by provided expressions with default direction
(self, expr: Vec<Expr>)
| 1180 | |
| 1181 | /// Apply a sort by provided expressions with default direction |
| 1182 | pub fn sort_by(self, expr: Vec<Expr>) -> Result<DataFrame> { |
| 1183 | self.sort( |
| 1184 | expr.into_iter() |
| 1185 | .map(|e| e.sort(true, false)) |
| 1186 | .collect::<Vec<SortExpr>>(), |
| 1187 | ) |
| 1188 | } |
| 1189 | |
| 1190 | /// Sort the DataFrame by the specified sorting expressions. |
| 1191 | /// |