Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get all files of a drive folder to google colab

from google.colab import drive
drive.mount('/content/drive/')
## Then

%cd /content/drive/My Drive/Colab Notebooks/
## After I can for example read csv files with

df = pd.read_csv("data_example.csv")
## If you have different locations for the files just add the correct path after My Drive
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #files #drive #folder #google #colab
ADD COMMENT
Topic
Name
2+9 =