Skip to content

Instantly share code, notes, and snippets.

@erichare
Created July 19, 2022 21:02
Show Gist options
  • Save erichare/22582adeb617a0951aabd39e5cdca9cd to your computer and use it in GitHub Desktop.
Save erichare/22582adeb617a0951aabd39e5cdca9cd to your computer and use it in GitHub Desktop.
Interfacing with a Daisi to produce a Google Spreadsheet
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