Skip to content

TomAugspurger/pydata-chi-h2t

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aa86a4e · Oct 8, 2016

History

25 Commits
Aug 26, 2016
Aug 6, 2016
Aug 20, 2016
Aug 24, 2016
Aug 25, 2016
Aug 24, 2016
Aug 25, 2016
Aug 24, 2016
Aug 20, 2016
Oct 5, 2016
Oct 8, 2016
Aug 8, 2016
Aug 24, 2016
Aug 6, 2016
Aug 24, 2016

Repository files navigation

Pandas .head() to .tail()

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License

Materials for the pandas tutorial at PyData Chicago 2016.

Setup

Change directory into the tutorial repo:

$ cd pydata-chi-h2t

And proceed with the installation, depending on whether you're using conda or pip.

Conda / Miniconda

Create a new environment using the provided environment.yml

$ conda env create

This will make a new environment called ph2t. Once it's created, make sure to run source activate ph2t or activate ph2t (depending on your platform) to activate it.

Check the install with

$ python check_environment.py

Then run

$ jupyter notebook

and open the first notebook 1-Basics.ipynb.

Pip / virtualenv

Hopefully you know what you're doing. I believe the current recommended way of creating virtualenvs is either

$ pyvenv /path/to/new/virtual/environment

or

$ python3 -m venv myenv

Make sure that you're creating a python3 environment. The notebooks should mostly work with python2, but no promises. If you call the environment ph2t, then activate it and install the requirements.

$ source /path/to/ph2t/bin/activate
$ python -m pip install -r requirments.txt

Check the install with

$ python check_environment.py

Then run

$ jupyter notebook

and open the first notebook 1-Basics.ipynb.

Notebooks

  1. Basics
  2. Operations
  3. Indexing
  4. Groupby and Reshaping
  5. Tidy Data
  6. For Stats & ML

Further Resources