After this lesson, you can
- Create a Colab notebook.
- Run and add code cells.
- Understand what a temporary cloud runtime means.
1. Create a notebook
- 1Open Google Colab.
- 2Sign in to Google if needed.
- 3Select New Notebook.
- 4Find the first code cell.
- 5Type print("Hello, econometrics!").
- 6Select the Run button.
- 7Add another cell and test pandas.
2. Advantages
- No installation.
- Works on Chromebooks.
- Saves notebooks to Google Drive.
- Easy to share.
3. Limitations
- Requires internet.
- Sessions can reset.
- Uploaded files can disappear when a runtime resets.
- Package versions can change.
Live Python
A Colab-ready DataFrame
A Colab-ready DataFrame
Stdout
Run Python to see results here.
Status / stderr
Ready to run Python in your browser.
Line-by-line guide
- Line 1Load a Python library needed for data work or regression.
- Line 3Create or update a Python object used in the analysis.
- Line 4Run this Python instruction as part of the lesson workflow.
- Line 5Run this Python instruction as part of the lesson workflow.
- Line 6Run this Python instruction as part of the lesson workflow.
- Line 8Display a result so students can inspect the output.
Expected output
income consumption 0 40 35 1 50 42 2 60 49
Your setup progress