How to import data to Google Colab for the beginner.

Rizvan Saatov
2 min readSep 21, 2020

I would like to share my experience who just start to work with Colab and trying to connect the datasets from drive to the Colab.

Colaboratory is a Google research project created to help disseminate machine learning education and research. You can find useful information and guidance of the Colab documentation through this link.

https://colab.research.google.com/notebooks/intro.ipynb#

As a key point, I suggest you open a new Google Drive account only for your database. It contains 15 GB and you can easily connect to this account. It is convenient to handle your project by using Colab. You do not need to occupy your computer storge. In order to compress your huge data files, you can filter it before uploading it to drive.

You can use it for connecting the following codes, once you run you will be asked authorization. Easily you can authorize by clicking the link and you are supposed to copy and paste in the box which is mentioned as “Enter verification code:”

!pip install -U -q PyDrivefrom pydrive.auth import GoogleAuthfrom pydrive.drive import GoogleDrivefrom google.colab import authfrom oauth2client.client import GoogleCredentials

--

--

Rizvan Saatov
Rizvan Saatov

Written by Rizvan Saatov

Small sparks make an influence such as a butterfly effect🤞 Cloud/DevOps Engineer🚀 Linkedin: http://linkedin.com/in/rizvan-saatov 💻 Cascloudops.com

Responses (1)