Created
July 19, 2022 21:02
-
-
Save erichare/22582adeb617a0951aabd39e5cdca9cd to your computer and use it in GitHub Desktop.
Interfacing with a Daisi to produce a Google Spreadsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pydaisi as pyd | |
import pandas as pd | |
google_spreadsheets = pyd.Daisi("erichare/Google Spreadsheets") | |
df = pd.read_csv("https://gist.githubusercontent.com/netj/8836201/raw/6f9306ad21398ea43cba4f7d537619d0e07d5ae3/iris.csv") | |
email = "<your_email_here>" | |
with open("service_account.json") as my_f: | |
service_account = my_f.read() | |
print(google_spreadsheets.store_in_gs(df, email, service_account, title="Spreadsheet from Daisi").value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment