Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use google sheet link in pandas dataframe

import pandas as pd
sheet_url = “https://docs.google.com/spreadsheets/d/1XqOtPkiE_Q0dfGSoyxrH730RkwrTczcRbDeJJpqRByQ/edit#gid=0"
url_1 = sheet_url.replace(‘/edit#gid=’, ‘/export?format=csv&gid=’)
df = pd.read_csv(url_1)
print(df.head())
 
PREVIOUS NEXT
Tagged: #google #sheet #link #pandas #dataframe
ADD COMMENT
Topic
Name
9+1 =