Laura
Laura

Reputation: 51

Problems reading bigquery google sheets federated data sources into cloud datalab via pandas_gbq

This is very similar to this question -- I have basically the same question, and one of the commenters there said he had solved it but didn't flesh out the solution.

I have tried to follow mattm's instructions on the original question post: "I had the exact same issue and I had to enable both the Drive API for the project (in addition to BigQuery API), as well as use the BigQuery+Drive scopes. I also had to then manually permission the sheets to allow access to the [email protected] account my project used to access the Google Sheets with."

Has anyone else managed to get this working? Is it a matter of using BigQuery and Drive scopes, and if so, how do I do that?

Upvotes: 4

Views: 323

Answers (1)

Michael Moursalimov
Michael Moursalimov

Reputation: 306

When formatting your request, make sure credentials have the following two scopes: 'https://www.googleapis.com/auth/drive.readonly' and 'https://www.googleapis.com/auth/cloud-platform'

Upvotes: 3

Related Questions