How can I import an MS-excel file (.xlsx) from a Google drive into colaboratory?
excel_file = drive.CreateFile({'id':'some id'})
works ( drive- object pydrive.drive.GoogleDrive). But,
print excel_file.FetchContent()
returns None. AND
excel_file.content()
throws:
TypeErrorTraceback (last last call) in () ----> 1 excel_file.content ()
TypeError: object '_io.BytesIO' cannot be called
My intention (given some valid "id" file) is to import it as an io object that can be read with pandas read_excel(), and finally get pandas from it.
source
share