diff --git a/popcorn.py b/popcorn.py index f5f3fca..4e044f3 100644 --- a/popcorn.py +++ b/popcorn.py @@ -127,12 +127,16 @@ def _(): return +@app.cell +def _(df: pl.DataFrame): ( - lp.ggplot(sizes_df, lp.aes(x="date", y="size")) - + lp.geom_point() - + lp.geom_smooth(method="lowess") + lp.ggplot( + df.group_by("date").agg(pl.col("downloads").sum()).sort("date"), + lp.aes("date", "downloads"), + ) + + lp.geom_line() + lp.labs( - title="", + title="Daily downloads", ) ) return