Answers for "import file in google colab"

7

colab mount drive

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

#Optional: move to the desired location:
%cd drive/My Drive/DIRECTORY_IN_YOUR_DRIVE
Posted by: Guest on November-10-2020
1

import file to colab

from google.colab import files
files.upload()
 # run the above code and click on the enabled "Choose Files" button 

import pandas as pd
df = pd.read_csv('your uploades file name.csv') # df is a changable variable 
df.head() # shows first 5 rows
Posted by: Guest on July-26-2021
7

upload file in colab

from google.colab import files
files.upload()
Posted by: Guest on May-05-2020
0

google colab upload a file

from google.colab import files
files.upload()
Posted by: Guest on March-31-2020

Code answers related to "import file in google colab"

Python Answers by Framework

Browse Popular Code Answers by Language