How to import data to Google Colab for the beginner.
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