Skip to content

Commit 8a3e998

Browse files
committed
Refactor and clean up the data downloading
1 parent 9ab39c9 commit 8a3e998

5 files changed

Lines changed: 256 additions & 332 deletions

File tree

book/cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ df_clusters = df_clusters.query("users > 0")
361361
df_clusters["logusers"] = df_clusters["users"].map(np.log10)
362362
363363
# List of clusters sorted by size
364-
sorted_clusters = df_clusters.groupby("cluster")["users"].mean().sort_values("users", ascending=False).index.values
364+
sorted_clusters = df_clusters.groupby("cluster")["users"].mean().sort_values(ascending=False).index.values
365365
```
366366

367367
`````{code-cell} ipython3

book/finances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ for fig in figures.values():
364364
fig.show()
365365
```
366366

367-
(undertanding-revenue)=
367+
(understanding-revenue)=
368368
## Understanding revenue
369369

370370
The plots above show our revenue projections under different assumptions, going 18 months into the future:

book/scripts/download_airtable_data.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,10 @@
3333

3434
# These correspond to AirTable URLs of the form:
3535
# airtable.com/{{ BASE ID }}/{{ TABLE ID }}/{{VIEW ID}}
36+
# Only downloading tables that are actually used in the book (cloud.md)
3637
views = [
3738
("communities", "appbjBTRIbgRiElkr", "tblYGygEo5PQBSUYt", "viw2F6xVWJujWKCuj"),
3839
("locations", "appbjBTRIbgRiElkr", "tblNiMH0gYRVhVdhE", "viwYjmYFRWWJnrv8Y"),
39-
# ("accounting", "appbjBTRIbgRiElkr", "tblNjmVbPaVmC7wc3", "viw1daKSu2dTcd5lg"), # This table was deleted, so removing it for now
40-
("contracts", "appbjBTRIbgRiElkr", "tbliwB70vYg3hlkb1", "viwWPJhcFbXUJZUO6"),
41-
("leads", "appbjBTRIbgRiElkr", "tblmRU6U53i8o7z2I", "viw8xzzSXk8tPwBho"),
42-
("opportunities", "appbjBTRIbgRiElkr", "tblBTPDI1nKoq8wOL", "viwuJxmlTnW1VZxIm"),
43-
("sales", "appbjBTRIbgRiElkr", "tblBTPDI1nKoq8wOL", "viwcsrE83taP6GhSl"),
4440
]
4541

4642
## Load in airtable

0 commit comments

Comments
 (0)