Git Product home page Git Product logo

us_census_data_mining_challenge_python3's Introduction

Use Python Script to organize and process the national data set from US Census 5 years summary big files

This folder contains scripts and text files, which demenstrate an example of processing household income data. Other types of data can be similarly processed by modifying these scripts.

Author: Yan Jiang

Last Edit Date: 2015, June ##############################################################################################

Steps:

(1). Download data from 2008-2012_ACSSF_All_In_2_Giant_Files(Experienced-Users-Only). Unpack All_Geographies_Not_Tracts_Block_Groups.tar.gz and 2012_ACS_Geography_Files.zip. All_Geographies_Not_Tracts_Block_Groups.tar.gz was called estimation file, and 2012_ACS_Geography_Files.zip was called geographic information.

(2). Yan developed python scripts to process the national datasets: a. Read estimation file by running read_estfile.py, results were saved as est_output_US.txt. b. Read geographic file by running read_geofile.py, results were saved as geo_output_US.txt. c. Combine est_output_US.txt and geo_output_US.txt by running join_tables.py with Mapreduce.py in the same folder. This step generates a file final_US.txt. d. Split the big table into small ones with 60000 rows for each one. Run split_final.py. This step generates output1.txt, output2.txt, output3.txt, output4.txt. e. Import the four files, output1.txt, output2.txt, output3.txt, output4.txt, into Excel 2003 file. ArcGIS 10.2 doesn’t read Excel 2013. f. Merge output1, output2, output3, output4 tables into one table, which is the national data dbf table. Do join with national CBG layer to produce a national data layer.

us_census_data_mining_challenge_python3's People

Contributors

enaj1125 avatar

Stargazers

Tom Porkka avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.