Add daily downloads graph
This commit is contained in:
parent
761cd9b2ad
commit
8fc84287ef
1 changed files with 8 additions and 4 deletions
12
popcorn.py
12
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue