Giter VIP home page Giter VIP logo

crime-and-border-correlation's Introduction

“The Wall” Project: Crime and Border

Created on 6/20/2017

What is it about?

There is a continuous discussion about whether or not the [illegal] immigrants infiltrating the USA from Mexico positively affect the crime rate in the border neighborhoods. This program's purpose is to cast some light on the situation using data from Wikipedia. Check out our report in the document folder for more detailed information.

The program was built using Python, matplotlib, and CSV and BeautifulSoup module.

What we did:

  1. Download and extract crime-related data (namely, the total violent crime rate per 100,000 people) from the major US cities from the List of US cities by crime rate. (cache was used) here

  2. For each city, follow the link to its Wikipedia page and extract its coordinates. Calculate the distance to the border as the smallest distance from each city to San Ysidro, Yuma, Tucson, El Paso, Laredo, Del Rio, and Brownsville, TX.

  3. Save the city names, crime rates, and smallest distances to the border in a 3-column CSV file for further analysis

How to run this program on your computer locally?

  1. Download Anaconda Navigator here
  2. Install Spider within Anaconda Navigator
  3. Launch Spider and import the source code (File --> Open --> select the CrimeBorder.py)
  4. Run the program

NOTE: The behavior of the program might change or not work due to changes applied to the Websites.

crime-and-border-correlation's People

Contributors

chimichanga1994 avatar tphuong141607 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.