Hello! I'm a machine learning engineer at Civis Analytics where I
- Developed/ship our house forecasting model
- Created a resource allocation service/dashboard
- Manage modeling-as-a-service products for our clients
In progressive politics its important to get out numbers and get eyes on them quickly. Autoupdating spreadsheets are a convenient way to track important tables in an accessible way + maintain version history. This repo is meant as a simple boilerplate to set you up to do this fast.
-
Set up your gcp (won't cover this)
-
Create a service account in your gcp
a. Go to https://console.cloud.google.com/
b. Search service accounts
c. + Create service account and name it
d. Click on your created service account and Add Key
e. Create New Key, Json, and save it in your bash_profile with formatexport SA_PASSWORD=
cat << EOF <paste json> EOF
-
Create a spreadsheet by setting
CREATE_NEW_SPREADSHEET=True
inmain.py
and write df to sheet -
Set
CREATE_NEW_SPREADSHEET=False
to keep your old sheet, update link value, and choose conditional formatting
@ashe_cs
[email protected]