Getting Google Spreadsheet CSV into A Pandas Dataframe

后端 未结 6 671
死守一世寂寞
死守一世寂寞 2020-12-04 09:31

I uploaded a file to Google spreadsheets (to make a publically accessible example IPython Notebook, with data) I was using the file in it\'s native form could be read into a

6条回答
  •  不思量自难忘°
    2020-12-04 10:27

    My approach is a bit different. I just used pandas.Dataframe() but obviously needed to install and import gspread. And it worked fine!

    gsheet = gs.open("Name")
    Sheet_name ="today"
    wsheet = gsheet.worksheet(Sheet_name)
    dataframe = pd.DataFrame(wsheet.get_all_records())
    

提交回复
热议问题