Skip to content
forked from ireapps/pycar

The Python mini boot camp for NICAR 2016 in Denver.

License

Notifications You must be signed in to change notification settings

robodellaz/pycar

 
 

Repository files navigation

8888888b.            .d8888b.        d8888 8888888b.   d888   .d8888b.  
888   Y88b          d88P  Y88b      d88888 888   Y88b d8888  d88P  Y88b 
888    888          888    888     d88P888 888    888   888  888        
888   d88P 888  888 888           d88P 888 888   d88P   888  888d888b.  
8888888P"  888  888 888          d88P  888 8888888P"    888  888P "Y88b 
888        888  888 888    888  d88P   888 888 T88b     888  888    888 
888        Y88b 888 Y88b  d88P d8888888888 888  T88b    888  Y88b  d88P 
888         "Y88888  "Y8888P" d88P     888 888   T88b 8888888 "Y8888P"  
                888                                                     
           Y8b d88P                                                     
            "Y88P"                                                      

##Python mini boot camp at #NICAR16 in Denver

Today, we'll use the iPython interactive interpreter to explore Python. At the end of the day, we'll give you all of the code from the exercises, along with several cheatsheets and tutorials, to take home with you, all from the class' code repository on Github.

###Schedule for the day ####Introduction

  • Who are you, what do you do, what do you want to learn?
  • What will we learn?
  • What can I do with it?
  • The goal of the day is to start to learn how to think about solving problems.

####The Basics We'll introduce some key Python types like the interactive interpreter, strings, integers, lists, slicing and loops.

####Project #1 As with many data analyses, it all starts with a CSV. After a white board exercise, we'll start with a file of pseudocode, and we'll walk through writing the program in Python code, running the file at the command line. We'll hold your hand through each step of the process.

LUNCH ON YOUR OWN

####A discussion on debugging and cheatsheet

####Project #2 We have a CSV of baseball player salaries. Let's figure out who makes the most money and examine some other biographical information about them, using dictionaries.

####Project #3 This section covers gathering data from the web in two common formats. In the first part, we'll scrape structured data from an html page using a GET request and writing the data to a CSV. In the second part, we'll request data from an API to get information programatically to create a spreadsheet. Our data comes in a new format: JSON. We'll do some more with the white board to show how it's basically a combination of data structures we already know about: Lists and dictionaries (arrays and objects).

At the end of the day, we'll send you home with:

  • A lightning dash through basic variables, types and functions
  • The working, commented code for each project from our git repo
  • A walkthrough for setting up your machine at home with Python, version control and virtualenvs
  • Good libraries to explore with strong tutorials
  • A lifetime support guarantee from us & PythonJournos

###Help! If you're working through this code at home and have trouble, please let us know. The best option is to file an issue report of the bug so we can help you. You can also reach out to any of us on Twitter or ping PythonJournos.

About

The Python mini boot camp for NICAR 2016 in Denver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 82.2%
  • Python 12.3%
  • Jupyter Notebook 5.5%