Quantitative Economics with Python
Table of Contents
About Lectures
Introduction to Python
About Python
Setting up Your Python Environment
An Introductory Example
Functions
Python Essentials
OOP I: Introduction to Object Oriented Programming
OOP II: Building Classes
The Scientific Libraries
Python for Scientific Computing
NumPy
Matplotlib
SciPy
Numba
Parallelization
Pandas
Advanced Python Programming
Writing Good Code
More Language Features
Debugging
Page Not Found
Search
Lecture Status
Troubleshooting
.md
.pdf
Contents
Lectures
The Scientific Libraries
¶
Next we cover the third party libraries most useful for scientific work in Python
Lectures
¶
Python for Scientific Computing
Overview
Scientific Libraries
The Need for Speed
Vectorization
Beyond Vectorization
NumPy
Overview
NumPy Arrays
Operations on Arrays
Additional Functionality
Exercises
Solutions
Matplotlib
Overview
The APIs
More Features
Further Reading
Exercises
Solutions
SciPy
Overview
SciPy versus NumPy
Statistics
Roots and Fixed Points
Optimization
Integration
Linear Algebra
Exercises
Solutions
Numba
Overview
Compiling Functions
Decorators and “nopython” Mode
Compiling Classes
Alternatives to Numba
Summary and Comments
Exercises
Solutions
Parallelization
Overview
Types of Parallelization
Implicit Multithreading in NumPy
Multithreaded Loops in Numba
Exercises
Solutions
Pandas
Overview
Series
DataFrames
On-Line Data Sources
Exercises
Solutions
OOP II: Building Classes
Python for Scientific Computing