Date | Session | Title | Description |
---|---|---|---|
Day 1 | Lecture 1 | Intro and Setup | Why Python, Setup, etc |
Day 1 | Lecture 2 | Basic Python | Syntax, data structures, control flow, etc |
Day 2 | Lecture 3 | Numpy + Pandas I | Numpy basics, series + dataframe basics |
Day 2 | Lecture 4 | Pandas II | Joining, advanced indexing, reshaping, etc |
Day 3 | Lecture 5 | Pandas III | Grouping, apply, transform, etc |
Day 3 | Lecture 6 | Plotting | Intro to plotting in Python |
Day 3 | Lecture 7 | Regression Intro | Intro to regressions with Statsmodels |
First, you're going to want to get a copy of this repository onto your
machine. Simply fire up git
and clone it:
Open up a shell (e.g.
cmd.exe
orterminal.app
).Navigate to where you'd like to save this. We recommend
~/repos/
(e.g.C:/Users/<user>/repos/
on Windows,/Users/<user>/repos/
on Mac, or/home/<user>/repos/
on Unix).Clone this repo:
git clone https://github.com/ihmeuw/ihme-python-course.git
You probably want to take notes, etc in your notebooks, so it's best to either fork this repo or just make a local branch to work off of:
Use git checkout to make a new branch
git checkout -b my_branch_name
Save any changes using git add and then git commit
git add . git commit -m "describe your change"
To get updates from the master branch, first fetch them:
git fetch
Then apply the changes from master to your personal branch:
git merge origin/master
Go to the Anaconda download page and download the installer for Python 3.5 (64-bit) and simply click through to follow the instructions
If you'd like to setup a Docker container with Anaconda check out the Docker setup instructions. But be warned that it doesn't play terribly nicely with Windows 7 or 8...
-
conda install -c conda-forge seaborn
-
conda install -c bokeh ggplot
-
conda install -c bokeh bokeh
-
conda install -c conda-forge statsmodels
The lectures are all Jupyter notebooks built with the [RISE](https://github.com/damianavila/RISE) live notebook presentation plugin. If you install RISE, you can view them as interactive slideshows (instead of just notebooks). See the RISE page for more info, or simply:
conda install -c damianavila82 rise
Significant portions of this course were adapted from the following sources, all of which are licensed under Creative Commons:
- swcarpentry/python-novice-gapminder
- TomAugspurger/pydata-chi-h2t
- fonnesbeck/HealthPolicyPython
- jrjohansson/scientific-python-lectures
This work is licensed under a Creative Commons Attribution 3.0 United States License.