Change to weekly downloads
This commit is contained in:
parent
8fc84287ef
commit
83dfce1a61
1 changed files with 16 additions and 5 deletions
21
popcorn.py
21
popcorn.py
|
|
@ -129,14 +129,19 @@ def _():
|
|||
|
||||
@app.cell
|
||||
def _(df: pl.DataFrame):
|
||||
(
|
||||
lp.ggplot(
|
||||
df.group_by("date").agg(pl.col("downloads").sum()).sort("date"),
|
||||
lp.aes("date", "downloads"),
|
||||
weekly_downloads = (
|
||||
df.sort("date")
|
||||
.group_by_dynamic("date", every="1w")
|
||||
.agg(pl.col("downloads").sum())
|
||||
.sort("date")
|
||||
)
|
||||
(
|
||||
lp.ggplot(weekly_downloads, lp.aes("date", "downloads"))
|
||||
+ lp.geom_line()
|
||||
+ lp.geom_smooth(method="loess")
|
||||
+ lp.geom_smooth(method="lm")
|
||||
+ lp.labs(
|
||||
title="Daily downloads",
|
||||
title="Weekly downloads",
|
||||
)
|
||||
)
|
||||
return
|
||||
|
|
@ -187,6 +192,12 @@ def _(sizes_df):
|
|||
|
||||
|
||||
# further ideas:
|
||||
#
|
||||
# - daily download habits:
|
||||
# - which weekday has most downloads?
|
||||
# - are we downloading further spread of versions on specific days
|
||||
# - are there 'update' days, where things converge? specific weekday/on holidays/etc?
|
||||
#
|
||||
# - which kernels have been DL when? (simplified for semver)
|
||||
# - when did specific kernels enter the repos?
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue