diff --git a/user_guide/src/examples/time_series/parsing_dates.py b/user_guide/src/examples/time_series/parsing_dates.py index 610cc5c5..153a2b54 100644 --- a/user_guide/src/examples/time_series/parsing_dates.py +++ b/user_guide/src/examples/time_series/parsing_dates.py @@ -11,7 +11,7 @@ pl.col("Date").is_between(datetime(1995, 7, 1), datetime(1995, 11, 1)), ) -df_with_year = df.with_column(pl.col("Date").dt.year().alias("year")) +df_with_year = df.with_columns(pl.col("Date").dt.year().alias("year")) ts = pl.Series(["-1300-05-23", "-1400-03-02"]).str.strptime(pl.Date)