Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document creation of a Pandas DataFrame from gspread #138

Closed
sudar opened this issue Jun 7, 2014 · 6 comments
Closed

Document creation of a Pandas DataFrame from gspread #138

sudar opened this issue Jun 7, 2014 · 6 comments
Labels

Comments

@sudar
Copy link

sudar commented Jun 7, 2014

Would be a nice feature to have.

@sudar
Copy link
Author

sudar commented Jun 7, 2014

After I posted it, I found the following snippets which allows you to create Pandas DataFrame

import gspread
import pandas
gc = gspread.login('my@email.com', 'supersecretekey')
book = gc.open('My Spreadsheet')
sheet = book.sheet1 #in this case
dataframe = pandas.DataFrame(sheet.get_all_records())

Source: https://github.com/burnash/gspread/wiki/Cookbook

@JamesHaskell
Copy link

I'm very happy to see Pandas support being brought into the mix!

James

On Jun 7, 2014, at 5:19 AM, Sudar notifications@github.com wrote:

After I posted it, I found the following snippets which allows you to create Pandas DataFrame

import gspread
import pandas
gc = gspread.login('my@email.com', 'supersecretekey')
book = gc.open('My Spreadsheet')
sheet = book.sheet1 #in this case
dataframe = pandas.DataFrame(sheet.get_all_records())
Source: https://github.com/burnash/gspread/wiki/Cookbook


Reply to this email directly or view it on GitHub.

@westurner
Copy link

What about pandas -> gspread?

@jimrockey
Copy link

That would be an awesome feature.

@msuozzo msuozzo changed the title [Feature Request] Ability to read data from a Google Spreadsheet into a Pandas DataFrame Document creation of a Pandas DataFrame from gspread Oct 15, 2015
@msuozzo
Copy link
Collaborator

msuozzo commented Oct 15, 2015

So it appears this is a very easy operation every without a dedicated call. I don't think it warrants a change to the code but it might be useful to add this to the documentation in case anyone else has this use-case.

@lavigne958
Copy link
Collaborator

Gspread -> Pandans is covered in the documentation: Examples
Pandas -> Gspread is not intended to be covered here but it is using the following libraries: gspread-pandas && gspread-dataframe

Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants