Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Python :: pandas replace values in column based on condition 
Python :: run py file in another py file 
Python :: pandas percentage change across 3 periods 
Python :: render_template not showing images 
Python :: hotel room allocation tool in python 
Python :: qlineedit autocomplete python 
Python :: pandas drop extension name from list of files 
Python :: pandas write to csv without first line 
Python :: datetime python 
Python :: find python path windows 
Python :: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256 
Python :: .annotate unique distinct 
Python :: matplotlib draw a line between two points 
Python :: mongodb connection using python 
Python :: pandas print dataframe dtypes 
Python :: how to loop over day name in python 
Python :: python os is directory 
Python :: how to write in google chrome console in python 
Python :: left join two dataframes pandas on two different column names 
Python :: check if env variable exists python 
Python :: neat python full form 
Python :: python close input timeout 
Python :: mish activation function tensorflow 
Python :: python requests token x-www-form-urlencoded 
Python :: python console command 
Python :: how to find current age from date of birth in python 
Python :: order dataframe by multiple columns python 
Python :: matplotlib ticksize 
Python :: Print a nested list line by line in python 
Python :: how to check if a proxy is dead in python 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =