Skip to content

Instantly share code, notes, and snippets.

@sudar
Created August 31, 2014 07:18
Show Gist options
  • Save sudar/9d8190486bf46bf3e3c3 to your computer and use it in GitHub Desktop.
Save sudar/9d8190486bf46bf3e3c3 to your computer and use it in GitHub Desktop.
Read data from Google Sheet into a Python Pandas DataFrame. Details at http://sudarmuthu.com/blog/read-data-from-google-sheet-into-a-python-pandas-dataframe/
import gspread
import pandas
gc = gspread.login('[email protected]', 'supersecretepassword')
book = gc.open('Spreadsheet name')
sheet = book.sheet1 #choose the first sheet
dataframe = pandas.DataFrame(sheet.get_all_records())
@PavelBMB
Copy link

gspread.login doesn't work anymore

@PavelBMB
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment