Skip to content

Commit

Permalink
Update user guide examples
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Nov 16, 2023
1 parent a56b6a0 commit 7d98906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)

out = df.group_by_dynamic("time", every="1mo", period="1mo", closed="left").agg(
pl.col("time").cumcount().reverse().head(3).alias("day/eom"),
pl.col("time").cum_count().reverse().head(3).alias("day/eom"),
((pl.col("time") - pl.col("time").first()).last().dt.total_days() + 1).alias(
"days_in_month"
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
)
.agg([
col("time")
.cumcount(true) // python example has false
.cum_count(true) // python example has false
.reverse()
.head(Some(3))
.alias("day/eom"),
Expand Down

0 comments on commit 7d98906

Please sign in to comment.