This is a short introductory python workshop for students in ARE 212 (Graduate Applied Econometrics in the department of Agricultural & Resource Economics at UC Berkeley). This workshop is meant to serve as a primer on python fundementals, specifically geared toward python tasks used in the ARE 212 course. This workshop is fairly brief, but meant to give an overview of the functionality of various python strucutres that may not be obvious in a more general python fundementals course; functionality that can be confusing for many new and experienced users of python taking the ARE 212 course. This workshop is currently implemented through a series of juptyer notebooks that are designed to run through UC Berkeley's JupyterHub server.
To open these files using JupyterHub, click the below link. This will clone the github repo into your JupyterHub account. https://datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Facwatt%2Fare212-bootcamp&urlpath=lab%2Ftree%2Fare212-bootcamp%2FBootcamp+main+-+OLS+class+%28blank%29.ipynb&branch=main
- Basic python data types (10)
- For & while loops (10)
- Iterable data types (20)
- Numpy datatypes (10)
- Matrix algebra in python (10)
- Defining and using functions (10)
- Scope and Namespace (10)
- Lambda functions (anonymous functions) (10)
- Function inception (functions in functions) (10)
- Basic class structure (10)
- Small examples with instantiation (10)
- Updating class attributes (10)
- Class example (minimizing a function) (10)
- OLS example (20)
- Comment python installations (10)
- Installing python packages (20)
- List comprehension (10)