Created
August 31, 2014 07:18
-
-
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/
This file contains 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 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()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gspread.login doesn't work anymore