Skip to content

Instantly share code, notes, and snippets.

@franklinokech
Created June 27, 2020 18:22
Show Gist options
  • Save franklinokech/44979fd88ca5cddd0c76c0e61d5f855e to your computer and use it in GitHub Desktop.
Save franklinokech/44979fd88ca5cddd0c76c0e61d5f855e to your computer and use it in GitHub Desktop.
A Gist to authentifcate Google Sheet With Python Gspread Library
# 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