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
|
return
|
||||||
|
|
||||||
|
|
||||||
|
@app.cell
|
||||||
|
def _(df: pl.DataFrame):
|
||||||
(
|
(
|
||||||
lp.ggplot(sizes_df, lp.aes(x="date", y="size"))
|
lp.ggplot(
|
||||||
+ lp.geom_point()
|
df.group_by("date").agg(pl.col("downloads").sum()).sort("date"),
|
||||||
+ lp.geom_smooth(method="lowess")
|
lp.aes("date", "downloads"),
|
||||||
|
)
|
||||||
|
+ lp.geom_line()
|
||||||
+ lp.labs(
|
+ lp.labs(
|
||||||
title="",
|
title="Daily downloads",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue