Skip to content

Commit

Permalink
renew examples.time_series
Browse files Browse the repository at this point in the history
  • Loading branch information
linjing-lab committed Sep 22, 2023
1 parent 542cd4d commit 6fba28c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions user_guide/src/examples/time_series/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
df as parse_dates_df,
filtered_df,
filtered_range_df,
annual_average_df,
df_with_year,
negative_dates_filtered_df,
)
Expand Down Expand Up @@ -36,9 +35,6 @@
with open(f"{path}/parse_dates_filtered_range_df.txt", "w") as f:
f.write(f"{filtered_range_df}\n")

with open(f"{path}/parse_dates_annual_average_df.txt", "w") as f:
f.write(f"{annual_average_df}\n")

with open(f"{path}/parse_dates_with_year.txt", "w") as f:
f.write(f"{df_with_year}\n")

Expand Down
2 changes: 0 additions & 2 deletions user_guide/src/examples/time_series/parsing_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
pl.col("Date").is_between(datetime(1995, 7, 1), datetime(1995, 11, 1)),
)

annual_average_df = df.groupby_dynamic("Date", every="1y").agg(pl.col("Close").mean())

df_with_year = df.with_column(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 6fba28c

Please sign in to comment.