diff --git a/docs/source/src/rust/user-guide/expressions/lists.rs b/docs/source/src/rust/user-guide/expressions/lists.rs index d6d4b6b32674..465f6ac7795e 100644 --- a/docs/source/src/rust/user-guide/expressions/lists.rs +++ b/docs/source/src/rust/user-guide/expressions/lists.rs @@ -248,9 +248,10 @@ fn main() -> Result<(), Box> { // in rust use `col("*")` instead of pl.all() / col("*").count()) .round(2); + use polars_lazy::dsl; let result = weather_by_day .lazy() - .with_columns(vec![polars_lazy::dsl::concat_list(vec![ + .with_columns(vec![dsl::concat_list(vec![ col("*").exclude(vec!["station"]) ])? .alias("all_temps")])