Category Archives: Chicago Data

Comcast’s Monetary Influence Over Illinois Political Candidates

I found an interesting dataset on political contributions in the state of Illinois.. The downloadable .zip contains multiple tab delimited database files which contain the relationships between Donations, Committees, and Candidates.

Out of curiosity in seeing Comcast’s political influence in Illinois over time, I parsed the 650,775mb file called Receipts.txt. Below is a bar chart of yearly recorded donation totals from 2000 through 2015-08.

Comcast_DPolitical_Donations_2000-2015-6_2

Not being very politically oriented, I wanted to somehow relate the donations to candidates. But in the form of the available data, it appears Donors make contributions to Committees, and Committees support a Candidate. But I do not know if Candidates and Committees are a One to One relationship at the time of typing this.

Parsing the text file called CmteCandidateLinks.txt, I related the Committee Id with the candidate Id. Parsing the text file called Candidates.txt I relate the Candidate Id to the Candidate name.

Lots of candidate duplicates per donation entry. Majority of Committees represent the same candidate under different ids, while some committees represent multiple candidates. Example here:

donations-2-commit-2-candids

So I decided to distribute each donation amount between a potential multitude of candidates. I did this by dividing each donation by the number of candidates which belong to the committee recipient. From that, I got this list of Comcast’s Top Illinois Candidates.

top_20_illinois_Candidates_Recieve_Donation_from_Comcast

Cook County Employee Healthcare Costs by Department – June 2012

I came across an interesting data set while browsing datacatalog.cookcountyil.gov.  It can be found here.  Judging by the title, it appears to be healthcare costs for the month of June in the year of 2012.  There is no description, or any additional information I could find about it.  The data contains a department code, a number of employees, and a total cost.  It looks like this:

datascreenshot

I was curious, so I took the average cost of employee count (Cost / Emp num), per department.  I correlated the department numbers to labels from an alternative dataset also found on cook county’s data catalog.

My experiment resulted in two bubble charts.

Greater than 40 Employees

AverageEmployeeCostPerDepartment_GreaterThan40Employees

 

Greater than 40 Employees and less than 1,000

AverageEmployeeCostPerDepartment_GreaterThan40EmployeesLessThan1000

And now here’s the second chart processed with Google’s Deep Dream

2

Chicago Cannabis Decriminalization

A look into Chicago Police Department’s incident reports for marijuana related arrests.

ChicagoCannabisArrests_STill

The chart below displays over 15 years of CPD’s Cannabis related arrests for possession of 30 grams or less. The data is from data.cityofchicago.org

ChicagoCannaBisArrests_2001-2015_monthly_lessthan30gms

Here is the ruby code written to accumulate the monthly totals. Additional data filtering was done on the Socrata website prior to exporting the csv data file. Google Charts was used to create the line chart. CartoDB was used to create the still of the torque map.
rubytoparsechicagocannabis