Agate-analyzed data for data journalism class
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CellPhoneStory
ChartHomework
ChartSecondHomework
ClimateData
DataNormalizationHomework
DataSmellsHomework
IndependentStory
JoinHomework
SpouseBusinessStory
StormData
USstatesNaturalBeauty
WellDatabases
.gitignore
LICENSE.md
README.md

README.md

#JOUR 407 Homework

This repository contains my homework for JOUR 407 Data Journalism class taught by Matt Waite at the University of Nebraska-Lincoln. The majority of the files involve data analysis by agate and documentation via Jupyter.

##Contents ###DataNormalizationHomework This folder contains a dirty data set of [leaking underground storage tanks] (http://www.deq.state.ne.us/lustsurf.nsf/pages/sssi "NDEQ lust database") from the Nebraska Department of Environmental Quality. I used [OpenRefine] (http://openrefine.org) to normalize the data before finding the top 20 owners using Agate.

###DataSmellsHomework This folder looked at data from the University of Nebraska-Lincoln Police Department. By using Agate's group_by and count functions, inconsistent locations and buildings were revealed. Additionally, outliers in stolen and damaged amounts were found using agate-stats.

###JoinHomework From Nebraska school data, I calculated the percent change in free & reduced lunch and enrollment from 2013 to 2015. This assignment required joining agate tables and creating custom functions to round decimals.

###ChartHomework Using seaborn a Python data visualization based on matploblib, I constructed three different chart styles of the top 10 Nebraska counties for mountain lion sightings.

###ChartSecondHomework From the political ads database, I attempted to split the events by subjects to see which ads/candidates are most likely to use certain ones. However, this quest wasn't successful due to program limitations.

###IndependentStory Using general election data from the Nebraska Secretary of State, I analyzed the changes in the state's political party distribution from 2000 to 2014. From my analysis, I found that if the current growth trend of the independent party continues, it would overtake the Democratic party by 2020.

To find the party's distributions, I had to write custom functions to calculate the correct percents. The percent change was calculated using agate functions. Estimating the future growth was based on the instructions in Numbers in the Newsroom and required defining new functions.

###CellPhoneStory To gather the data for this story, I had to request records from the E911 departments in both Nebraska and Iowa. I looked at each state's E911 fund, which is funded by surcharges on cellphones. In the article, I explored how emergency services adapted to cover cellphones and the future plans.

###WellDatabases Using irrigated acres data from the National Agriculture Statistics Service in United States Department of Agriculture and registered groundwater well data from Nebraska Department of Natural Resources, I built an Agate custom computation to find whether a well was active during a given year. Next, I found the number of active wells for each county and also listed the number of irrigated acres. Currently, the complied information is saved in the wells_acres_total.csv.

###ClimateData I grabbed different climate-related statistics from the High Plains Regional Climate Center for use in an in-depth story on Nebraska climate. Those statistics include the frost season lengths, mean temperatures, and snowfall sums. I also had to build a scrapper to grab the monthly Lincoln temperatures from the UNL climate and data website and how they compare to 30-year normals.

###SpouseBusinessStory Using the US Census' Survey of Business Owners from 2012 and 2007, I looked at how the distribution of businesses that are equally owned and operated by both spouses has changed. Several industries including utilities have significantly dropped perhaps due to the Great Recession effects.

###StormData From the National Centers for Environmental Information, I grabbed all events from January 1950 to 2016. To grab only Nebraska events from the plethora of files, I wrote a quick Python program and looked into how each storm event has increased/decreased over the years.

###USstatesNaturalBeauty From a lovely cleaned csv that used the USDA's Natural Amenities Index, I used QGIS to join those scores to a United States map. The final map shows the lower scoring counties in dark brown or lighter yellow, and the higher ranking in either dark teal or a lighter one.