Skip to content

Latest commit

 

History

History
70 lines (44 loc) · 3.31 KB

README.md

File metadata and controls

70 lines (44 loc) · 3.31 KB
.-,--.      ,--.     ,.  .-,--.
 '|__/ . . | `-'    / |   `|__/
 ,|    | | |   .   /~~|-. )| \ 
 `'    `-| `--'  ,'   `-' `'  `
        /|
       `-'

Python mini bootcamp

In this two-day workshop, we'll learn the basics of the Python programming language and how to begin analyzing data in a Jupyter Notebook. What's a Notebook? It's an interactive coding environment that lets you blend words and code.

Confused? Of course.

Bear with us. It will all make sense soon.

Instructors, check out the Teacher's Guide.

Day 1

Intros

  • Who are you, what do you do, what do you want to learn?
  • What will we learn?
  • What can I do with it?
  • GOAL: Learn how to solve problems with code.

Key concepts of programming in Python:

  • Basic data types - strings, integers, lists
  • Lists are your friend!
  • etc

Bonus: a discussion on debugging and handy cheatsheet

Day 2

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 each line in the Jupyter interpreter. We'll hold your hand through each step of the process.

This project is out-of-date. We'll try to update it in the near future.

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 write the data to a CSV. In the second part, we'll request data from an API to get information programmatically 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).

Now we get to the heart of data analysis with an introduction to the powerful pandas library. Building on the basics we've already learned, and a little knowledge of SQL, we'll clean two related tables of data, join and filter them.

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

Help!

If you're working through this code at home and have trouble, please let us know.

The best way to reach us is by submitting an Issue on GitHub.