Giter Site home page Giter Site logo

data_normalizer's Introduction

README:

This is an exercise that consists on using POROs to solve next problem:

In app.rb, examples car contains data that emulates what a search feature of a cars company runs into where they get car data from a wide variety of sources, and need to normalize the data. Many times users will have typos or use shorthand in a given field.

In examples, left-hand hash represents data introduced to the system by a user meanwhile right-hand hash represents the expected output from the system. The goal is to complete the normalize_data function to make the examples pass.

Next rules represent the business logic applied to left-hand hash to obtain the normalized data (ie the right-hand hash):

  1. "trim" refers to different features or packages for the same model of vehicle
  2. Valid years are from 1900 until 2 years in the future from today
  3. A value that can't be normalized should be returned as is
  4. Sometimes the trim of a vehicle will be provided in the "model" field, and will need to be extracted to the "trim" field
  5. The word "blank" should be returned as nil

Points to evaluate:

  1. Programming patterns implemented
  2. Code structure

Average time to complete the excercise: ~4hrs

data_normalizer's People

Contributors

kevinnio 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.