我用来将excel文件上传到pandas数据帧 pd.ExcelFile,如果文件在我的本地驱动器中 如果我在Google云端硬盘或Microsoft One云端硬盘中有Excel文件且我想远程连接,我该怎么做呢?
答案 0 :(得分:1)
您可以在StringIO对象上使用read_csv():
from StringIO import StringIO # moved to io in python3.
import requests
r = requests.get('Your google drive link')
data = r.content
df = pd.read_csv(StringIO(data))