Skip to content

Commit

Permalink
Merge pull request #129 from linjing-lab/main
Browse files Browse the repository at this point in the history
reduce line-length
  • Loading branch information
linjing-lab authored Dec 6, 2023
2 parents 2e1f7a2 + 67256c3 commit 3841530
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion user_guide/src/examples/time_series/days_month.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from datetime import datetime

# 时间轴(从low到high,间隔为1天,轴名称为"time")
df = pl.date_range(start=datetime(2021, 1, 1), end=datetime(2021, 12, 31), interval="1d", name="time", eager=True).to_frame()
df = pl.date_range(start=datetime(2021, 1, 1),
end=datetime(2021, 12, 31),
interval="1d", name="time",
eager=True).to_frame()

out = (
df.groupby_dynamic("time", every="1mo", period="1mo", closed="left")
Expand Down

0 comments on commit 3841530

Please sign in to comment.