Skip to content

acwatt/are212-bootcamp

Repository files navigation

are212-bootcamp

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

Overview

Section 1: Data types, loops, and matrix algebra (60 min)

  1. Basic python data types (10)
  2. For & while loops (10)
  3. Iterable data types (20)
  4. Numpy datatypes (10)
  5. Matrix algebra in python (10)

Section 2: Functions (40 min)

  1. Defining and using functions (10)
  2. Scope and Namespace (10)
  3. Lambda functions (anonymous functions) (10)
  4. Function inception (functions in functions) (10)

Section 3: Classes (50 min)

  1. Basic class structure (10)
  2. Small examples with instantiation (10)
  3. Updating class attributes (10)
  4. Class example (minimizing a function) (10)
  5. OLS example (20)

Section 4: Ethan's GMM class (30 min)

Section 5: Installing python locally and list comprehension (30 min)

  1. Comment python installations (10)
  2. Installing python packages (20)
  3. List comprehension (10)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published