Created
June 27, 2020 18:22
-
-
Save franklinokech/44979fd88ca5cddd0c76c0e61d5f855e to your computer and use it in GitHub Desktop.
A Gist to authentifcate Google Sheet With Python Gspread Library
This file contains hidden or 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
# Authenticate to Google drive and get the required dataset | |
from google.colab import auth | |
auth.authenticate_user() | |
import gspread | |
from gspread_dataframe import get_as_dataframe, set_with_dataframe | |
from oauth2client.client import GoogleCredentials | |
gc = gspread.authorize(GoogleCredentials.get_application_default()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment