Use new csv for unique installs
This commit is contained in:
parent
e00217f2fe
commit
9513e6544e
1 changed files with 8 additions and 3 deletions
11
popcorn.py
11
popcorn.py
|
|
@ -249,10 +249,15 @@ def _(df_pkg_lazy: pl.LazyFrame):
|
|||
|
||||
|
||||
@app.cell
|
||||
def _(df_lazy: pl.LazyFrame):
|
||||
df_unique_downloads = df_lazy.select(["date", "UniqueInstalls"]).collect()
|
||||
def _():
|
||||
(
|
||||
lp.ggplot(df_unique_downloads, lp.aes("date", "UniqueInstalls"))
|
||||
lp.ggplot(
|
||||
pl.read_csv(
|
||||
f"{DATA_CLEAN_DIR}/unique_installs.csv",
|
||||
schema={"date": pl.Date, "unique": pl.UInt16},
|
||||
),
|
||||
lp.aes("date", "unique"),
|
||||
)
|
||||
+ lp.geom_line()
|
||||
+ lp.geom_smooth()
|
||||
+ lp.labs(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue