Google Colab


How to load csv files to colab?

  • From Github (Files < 25MB)
  import pandas as pd
  url = 'copied_raw_link'
  df1 = pd.read_csv(url)
  • From a local drive
  from google.colab import files  
  uploaded = files.upload()

What is colab?

  • Colab (short for Colaboratory) is a free platform from Google that allows users to code in Python.
  • Colab is essentially the Google Suite version of a Jupyter Notebook.
  • Advantages of Colab over Jupyter include:
    • an easier installation of packages
    • easy sharing of documents

How to save a colab notebook to GitHub?

cmd/ctrl-shift-P
In the dropdown menu, select 'Save a copy in GitHub'

How to use TensorFlow with GPU?

demo code

More examples

TensorFlow 2.0 + Keras



References