GithubHelp home page GithubHelp logo

femmestem / building-code-violations Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 12 KB

This program parses a comma separated dataset containing building code violations, and it calculates number of violations in each category, and the earliest and latest violation date for each category. The results are logged out to the console and exported to a new csv file.

Ruby 100.00%

building-code-violations's Introduction

Code For America - Developer Fellowship Technical Question

Project Description

This program parses a comma separated dataset containing building code violations, and it calculates number of violations in each category, and the earliest and latest violation date for each category. The results are logged out to the console and exported to a new csv file violations_by_category.csv.

Download dataset from Code for America.

Contributors

Christine Feaster (@femmestem)

Developer Documentation

This project is written using the Ruby standard library.

Requirements

  • Git
  • Ruby 2.2 (RVM recommended for managing Ruby versions)

To check your ruby version, run $ ruby --version. If your version is 2.2.0, then you’re good to go.

If not, download RVM if not already installed, then run $ rvm list to see your installed ruby versions. If you have 2.2.0 installed, run $ rvm use ruby-2.2.0. Otherwise, install or update your ruby version with RVM.

  1. Download or clone this repository from GitHub $ git clone https://github.com/femmestem/building-code-violations.git building-code-violations
  2. Change directory into the project folder $ cd building-code-violations
  3. To execute the script, run: $ ruby application.rb
    This will create a new csv file violations_by_category.csv in the project root directory that contains number of violations in each category, and the earliest and latest violation date for each category.

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.