This is a lightly edited version of the notebook that we worked through in class on 1/22/19.
In class, we went through how to make an API call end-to-end, to get a look at common tasks like figuring out documentation, using libraries, making HTTP requests, etc. Over the weekend, practice with this API and others (you might also try the one at opensecrets.org read more
Before we do our scavenger hunt, here's a piece of useful information you should know: you can filter rows of a Pandas dataframe using something that returns a boolean.
For example, suppose you have a DataFrame called copdf with police officer names in a column called "name" and …read more
Here is a combination of some of the code Sam kindly showed us in class, plus the visualizations I showed you, for our simpson's paradox example on 3/25/19.
Here are a few additional FYIs:
The source of the underlying dataset is an article entitled "Simpson’s Paradox: A Data Set and Discrimination Case Study read more