Skip to content
Programming with Data: Python and Pandas πŸπŸ“ŠπŸ
Branch: master
Clone or download
Latest commit cf3d3e4 Jul 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Part II updates. May 6, 2019
binder Add binder config. May 5, 2019
build Add reveal.js back in. Sep 7, 2018
.gitattributes Part II updates. May 6, 2019
.gitignore Add code to export exercises and update build script. May 8, 2019
01-intro-to-pandas-part-1-answers.ipynb Cleanups to most slides. Jul 9, 2019
01-intro-to-pandas-part-1-exercises.ipynb Cleanups to most slides. Jul 9, 2019
01-intro-to-pandas-part-1-slides.ipynb Cleanups to most slides. Jul 9, 2019
02-intro-to-pandas-part-2-answers.ipynb Cleanups to most slides. Jul 9, 2019
02-intro-to-pandas-part-2-exercises.ipynb Programmatically create exercises from answers. Jun 11, 2019
02-intro-to-pandas-part-2-slides.ipynb Cleanups to most slides. Jul 9, 2019
03-group-apply-answers.ipynb Cleanups to most slides. Jul 9, 2019
03-group-apply-exercises.ipynb Programmatically create exercises from answers. Jun 11, 2019
03-group-apply-slides.ipynb Cleanups to most slides. Jul 9, 2019
04-time-series-answers.ipynb Change order of slides. Jul 12, 2019
04-time-series-exercises.ipynb Change order of slides. Jul 12, 2019
04-time-series-slides.ipynb Change order of slides. Jul 12, 2019
05-merge-pivot-answers.ipynb Change order of slides. Jul 12, 2019
05-merge-pivot-exercises.ipynb Change order of slides. Jul 12, 2019
05-merge-pivot-slides.ipynb Change order of slides. Jul 12, 2019
06-advanced-merge-reshape-answers.ipynb Programmatically create exercises from answers. Jun 11, 2019
06-advanced-merge-reshape-exercises.ipynb Programmatically create exercises from answers. Jun 11, 2019
06-advanced-merge-reshape-slides.ipynb Part II updates. May 6, 2019
07-linear-regression-answers.ipynb Programmatically create exercises from answers. Jun 11, 2019
07-linear-regression-exercises.ipynb Programmatically create exercises from answers. Jun 11, 2019
07-linear-regression-slides.ipynb Cleanups to most slides. Jul 9, 2019
08-beta-answers.ipynb Programmatically create exercises from answers. Jun 11, 2019
08-beta-exercises.ipynb Programmatically create exercises from answers. Jun 11, 2019
README.md More updates to the README. Jun 11, 2019
build.py Cleanups to most slides. Jul 9, 2019
build.sh Add code to export exercises and update build script. May 8, 2019
config.py Add code to export exercises and update build script. May 8, 2019
docker-compose.yml Part II updates. May 6, 2019
environment.yml Update slides and environment. Jun 4, 2019
macrodata.csv Add iPython notebooks. Sep 22, 2016
prices.csv Add iPython notebooks. Sep 22, 2016
sp500.csv Add iPython notebooks. Sep 22, 2016
starmine.csv Add iPython notebooks. Sep 22, 2016
volumes.csv Add iPython notebooks. Sep 22, 2016

README.md

Programming with Data: Python and Pandas

Binder

This repository contains the slides, exercises, and answers for Parts I and II of Programming with Data: Python and Pandas.

Installation

The easiest way to view the slides and try the exercises is to click the Binder badge above.

You may view the slides and the answers directly in your browser on Github though you will not be able to run them interactively.

If you're taking the course, want to follow along with the slides and do the exercises, and may not have Internet access, download and install the Anaconda Python 3 distribution and conda package manager ahead of time:

https://www.anaconda.com/download/

Download the latest version of the course materials here.

Alternatively, you may clone the course repository using git:

$ git clone https://github.com/dgerlanc/programming-with-data.git

The remainder of the installation requires that you use the command line.

To complete the course exercises, you must use conda to install the dependencies specified in the environment.yml file in the repository:

$ conda env create -f environment.yml

This will create an conda environment called pydata which may be "activated" with the following commands:

  • Windows: activate pydata
  • Linux and Mac: conda activate pydata or source activate pydata

Once you've activated the environment your prompt will probably look something like this:

(pydata) $

The entire course is designed to use jupyter notebooks. Start the notebook server to get started:

(pydata) $ jupyter notebook

Programming with Data
Foundations of Python and Pandas

Whether in R, MATLAB, Stata, or python, modern data analysis, for many researchers, requires some kind of programming. The preponderance of tools and specialized languages for data analysis suggests that general purpose programming languages like C and Java do not readily address the needs of data scientists; something more is needed.

In this workshop, you will learn how to accelerate your data analyses using the Python language and Pandas, a library specifically designed for interactive data analysis. Pandas is a massive library, so we will focus on its core functionality, specifically, loading, filtering, grouping, and transforming data. Having completed this workshop, you will understand the fundamentals of Pandas, be aware of common pitfalls, and be ready to perform your own analyses.

Prerequisites:

Workshop assumes that participants have intermediate-level programming ability in Python. Participants should know the difference between a dict, list, and tuple. Familiarity with control-flow (if/else/for/while) and error handling (try/catch) are required.

No statistics background is required.

Feedback

Your feedback on the course helps to improve it for future students. Please leave feedback here.

You can’t perform that action at this time.