#!/usr/bin/env python
# coding: utf-8
# # Bringing Data to Life Through OpenRefine and Tableau
# ### Conceptualizing Prosperity: Analyzing Housing through Job Types in 1911 Charlotte, NC
# * Contributor: Elissa Dallimore
# * Source Available: https://archive.org/details/charlottenorthca1911pied
# * License: [Creative Commons - Attribute 4.0 Intl](https://creativecommons.org/licenses/by/4.0/)
# * Attribution: This work is based upon digital assignments completed by MLIS Students in INST742: Implementing Digital Curation
# ## 8. Conceptualizing Prosperity: A Case Study Analyzing Housing through Job Types:
# * **Author:** Elissa Dallimore
# * **Abstract:** Visualizing housing types by job types to understand the employment landscape of Charlotte 1911.
# * **Dataset:** Full datified Directory (16,000 entries)
# * **Tools:** OpenRefine, Tableau
# * **Video:** https://youtu.be/MaD9lIYM7iY (9′ 07″)
#
Computational Thinking <3>
#
# This exercise utilizes the following computational thinking practices:
#
# Data Practices:
#
# - Manipulating data
# - Analyzing data
# - Visualizing data
#
# Modeling and Simulation Practices:
#
# - Using computational models to understand a concept
#
# Systems Thinking Practices:
#
# - Investigating complex systems as a whole
# - Understanding relationships within systems
# - Thinking in levels
# - Communicating information about a system
#
#
#
Initial Questions:
#
# - How many people owned or rented houses rather than renting a room or a bed?
# - What jobs were the most popular?
# - Is there a disparity in the type of housing based on what jobs people had?
# - In what sort of jobs were people more likely to rent a room or bed rather than own a house?
#
#
# ### Introduction to Charlotte City Directory
#
# 
#
# The 1911 Charlotte City Directory compiles all the individuals who lived or had a business in Charlotte, NC in addition to businesses in the city. It lists each person alphabetically, along with their addresses, titles, jobs, spouse's name, and so forth. Whilst it is certainly interesting to flip through these records, you may wonder if its really worth preserving old phonebook and directory data beyond familial interests.
#
# Can we really glean anything new from these records?
#
# Through software like OpenRefine and Tableau, we can visualize and understand larger trends in this data that we cannot glimpse on paper. In this notebook, we'll travel back to the streets of Charlotte in 1911 to try to understand what life was like through two important facets: jobs and housing. In comparing these data points, we'll be able to gain a new sliver of understanding about the prosperity and security of people at that time.
#
# To begin, click on the first sheet below.
# Objectives
#
# - Introduce students to cleaning up data using GREL and Regex in OpenRefine
# - Demonstrate to students how to visualize and investigate data in Tableau
# Notebooks
# 1. [Manipulating the Data in OpenRefine](ManipulatingDataOpenRefine.ipynb)
# 2. [Visualizing the Data in Tableau](Visualizing_the_Data_in_Tableau.ipynb)
#
# Next: [Manipulating the Data in OpenRefine](Sheets.ipynb)