From 60064f93a4f958d8f35f58ea5ae026e38f916210 Mon Sep 17 00:00:00 2001 From: Jing Lin <82669431+linjing-lab@users.noreply.github.com> Date: Fri, 22 Sep 2023 19:01:32 +0800 Subject: [PATCH] renew time_series/parsing_dates --- user_guide/src/examples/time_series/parsing_dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)