/python-intro-PGR

Jupyter notebooks for the course "Introduction to Python Programming for Economics & Finance" taught at Glasgow University

Primary LanguageJupyter Notebook

Introduction to Python Programming for Economics & Finance

License: CC BY-NC-SA 4.0 lite-badge Binder

Author: Richard Foltyn, University of Glasgow

Course outline

This introductory course consists of several units. Each unit corresponds to one interactive Jupyter notebook, which is also available as a static PDF file. Alternatively, you can download the entire course as a single PDF.

Unit Title PDF Google Colab
1 Language and NumPy basics PDF Open in Colab
2 Control flow and list comprehensions PDF Open in Colab
3 Reusing code - Functions, modules and packages PDF Open in Colab
4 Plotting PDF Open in Colab
5 Advanced NumPy PDF Open in Colab
6 Handling data with pandas PDF Open in Colab
7 Data input and output PDF Open in Colab
8 Random number generation and statistics PDF Open in Colab
9 Introduction to unsupervised learning PDF Open in Colab
10 Introduction to supervised learning PDF Open in Colab
11 Solving models for macroeconomics and household finance PDF Open in Colab
12 Error handling (optional) PDF Open in Colab

Course schedule

Date/Time Activity Description
Monday, 2023-05-22, Room 305AB
9:00 - 12:15 Lecture 1 Introduction & Units 1-3
13:30 - 15:00 Lab 1 Exercises for material covered in lecture 1
Wednesday, 2023-05-24, Room 305AB
9:00 - 12:15 Lecture 2 Units 4-5
13:30 - 15:00 Lab 2 Exercises for material covered in lecture 2
Friday, 2023-05-26, Room 305AB
9:00 - 12:15 Lecture 3 Units 6-7
13:30 - 15:00 Lab 3 Exercises for material covered in lecture 3
Thursday, 2023-06-01, Room 305AB
9:00 - 12:15 Lecture 4 Units 8-10
13:30 - 15:00 Lab 4 Exercises for material covered in lecture 4
Friday, 2023-06-02, Room 305AB
9:00 - 12:15 Lecture 5 Unit 11
13:30 - 15:00 Lab 5 Exercises for material covered in lecture 5

Python environment

Detailed slides on how to set up your working environment are available here.

Licence

This material is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except for the data files contained in the data/ folder, which fall under the terms imposed by the original content creators.