This is the course page for the 2019 edition of Econ 890-04 (Python for PhD Students) at Duke University.
Overview
The course provides a fast-paced introduction to Python, moving from core language features to the scientific stack used in economics.
Students apply Python to estimation, simulation, and data analysis workflows commonly used in research.
Prerequisites
- Graduate-level econometrics is required
- Graduate-level microeconomics or macroeconomics is assumed
- Students should have basic programming experience
Course Logistics
- Instructor: Guilherme Salome (office hours by appointment)
- Schedule: Tuesdays and Thursdays, 1:00-3:30 pm; Fridays, 10:00 am-12:30 pm
- Location: Social Sciences 124
Course Materials (2019)
Materials are listed in the original course sequence. The syllabus and readings appear first, followed by lectures and notebooks.
- Syllabus - HTML
- Readings - HTML
- Setting Up - PDF
- Basics - PDF
- Basics (Notebook) - Notebook
- Numpy - PDF
- Numpy (Notebook) - Notebook
- Matplotlib - PDF
- Matplotlib (Notebook) - Notebook
- Scipy - PDF
- Scipy (Notebook) - Notebook
- Git - HTMLPDF
- Advanced Python - PDF
- Advanced Python (Notebook) - Notebook
- Pandas and Statsmodels - PDF
- Pandas and Statsmodels (Notebook) - Notebook
- Concurrency - PDF
- Concurrency (Notebook) - Notebook
- Cluster - PDF
- Creating and Distributing Packages - PDF
- All Notebooks - ZIP