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
|
@app.cell
|
||||||
def _(df: pl.DataFrame):
|
def _(df: pl.DataFrame):
|
||||||
(
|
weekly_downloads = (
|
||||||
lp.ggplot(
|
df.sort("date")
|
||||||
df.group_by("date").agg(pl.col("downloads").sum()).sort("date"),
|
.group_by_dynamic("date", every="1w")
|
||||||
lp.aes("date", "downloads"),
|
.agg(pl.col("downloads").sum())
|
||||||
|
.sort("date")
|
||||||
)
|
)
|
||||||
|
(
|
||||||
|
lp.ggplot(weekly_downloads, lp.aes("date", "downloads"))
|
||||||
+ lp.geom_line()
|
+ lp.geom_line()
|
||||||
|
+ lp.geom_smooth(method="loess")
|
||||||
|
+ lp.geom_smooth(method="lm")
|
||||||
+ lp.labs(
|
+ lp.labs(
|
||||||
title="Daily downloads",
|
title="Weekly downloads",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
@ -187,6 +192,12 @@ def _(sizes_df):
|
||||||
|
|
||||||
|
|
||||||
# further ideas:
|
# 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)
|
# - which kernels have been DL when? (simplified for semver)
|
||||||
# - when did specific kernels enter the repos?
|
# - when did specific kernels enter the repos?
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue