“Abra o CSV do Google Drive usando Python” Respostas de código

Abra o CSV do Google Drive usando Python

#From 
#Derive the id from the google drive shareable link.
#For the file at hand the link is as below
URL = <Go to Drive --> choose the file --> choose 'Get Link' --> paste it here>
path = 'https://drive.google.com/uc?export=download&id='+URL.split('/')[-2]
df = pd.read_csv(path)
Xanthous Xenomorph

Importar CSV do Google Drive Python

#Derive the id from the google drive shareable link.
#For the file at hand the link is as below
URL = 'https://drive.google.com/file/d/1m0mAGzpeMR0W-BDL5BtKrs0HOZsPIAbX/view?usp=sharing'
path = 'https://drive.google.com/uc?export=download&id='+URL.split('/')[-2]
#df = pd.read_pickle(path)
df = pd.read_csv(path)
df.head()
NP

Respostas semelhantes a “Abra o CSV do Google Drive usando Python”

Perguntas semelhantes a “Abra o CSV do Google Drive usando Python”

Mais respostas relacionadas para “Abra o CSV do Google Drive usando Python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código