Skip to content

Commit

Permalink
renew time_series/parsing_dates
Browse files Browse the repository at this point in the history
  • Loading branch information
linjing-lab committed Sep 22, 2023
1 parent 6fba28c commit 60064f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide/src/examples/time_series/parsing_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 60064f9

Please sign in to comment.