hands-on-analysis-python

PyCon 2015, previously OSCON 2014

Options for installation

Option 1: Install Anaconda.

Anaconda is a distribution of a bunch of awesome scientific Python tools that I highly recommend. I use it myself. If you haven't installed Anaconda, go here: https://store.continuum.io/cshop/anaconda/

Option 2: pip

Once you've cloned or downloaded the repo, you can simply pip install the required tools using requirements.txt. Once in the directory, open the terminal/command line and cd into hands-on-analysis-python/ and type: pip install -r requirements.txt

Options for running

Option 1: IPython Notebook

If you have installed a distribution like Anaconda or Enthought, you have IPython notebook. To run IPython notebook and to follow along:

  • git clone this repo OR download it as a zip and unzip it to your Desktop
  • open the terminal/command line and cd into hands-on-analysis-python/notebooks
  • in your terminal, type: ipython notebook

Option 2: Code files

If you didn't install these tools with a distribution, you can still run the code files in the code/directory in your terminal. You'll have to uncomment the print statements, and recomment if you wish, as we go.

To run, cd into hands-on-analysis-python/code and type: python pandas_lessons.py

Option 3: Wakari.io

Wakari.io is a platform for web-based Python data analysis. It also allows you to host IPython Notebooks online and share them so people can run IPython Notebook in the browser. To sign up for Wakari:

  • go here https://www.wakari.io/
  • when you register, it might give you a message that "we're at capacity for this plan" or something. Ignore it and click on the Wakari logo in the top left corner.
  • Then, click this link: https://www.wakari.io/sharing/bundle/sarguido89/hands_on_data_analysis
  • Click on "run/edit this notebook"
  • It's going to say "404: Not Found". That's okay! On the left, double click on "notebooks", and then on the notebook you want to open.
  • You should be good to go

Option 4: Follow along on the web

If none of these options work, or you just want to watch now and code later, you can follow along below. It's not interactive, but you'll be able to see what's happening.

Questions

https://docs.google.com/document/d/1tY6ifr4m4h2Ri445Vro1ZKr7Kap0X1IcI2OGl7IDaU0/edit?usp=sharing

FAQs

Q: HEY, why didn't you cover THAT THING?!

A: Because I didn't, okay?! I only had three hours! Three hours is not enough. You could do a six hour workshop on each tool and still not cover everything.

Q: What's your twitter handle again?

A: @sarah_guido