Giter Site home page Giter Site logo

epai3-assignment13's Introduction

EPAi3-Session13

Project

For this project you are given a file that contains some parking ticket violations for NYC. For this sample data set, the file is named:

nyc_parking_tickets_extract.csv Your goals are as follows:

Goal 1

Create a lazy iterator that will return a named tuple of the data in each row. The data types should be appropriate - i.e. if the column is a date, you should be storing dates in the named tuple, if the field is an integer, then it should be stored as an integer, etc.

Goal 2

Calculate the number of violations by car make.

Note: Try to use lazy evaluation as much as possible - it may not always be possible though! That's OK, as long as it's kept to a minimum.

Number of violations by car macker

{'ACURA': 7, 'AM/T': 1, 'AUDI': 7, 'BMW': 15, 'BUICK': 3, 'CADIL': 4, 'CHEVR': 40, 'CHRYS': 7, 'DODGE': 21, 'FIR': 1, 'FORD': 51, 'FRUEH': 21, 'GMC': 18, 'HIN': 5, 'HINO': 1, 'HONDA': 51, 'HYUND': 18, 'INFIN': 6, 'INTER': 11, 'ISUZU': 4, 'JAGUA': 3, 'JEEP': 11, 'KENWO': 3, 'KIA': 3, 'LEXUS': 13, 'LINCO': 6, 'MAZDA': 2, 'ME/BE': 18, 'MERCU': 3, 'MI/F': 1, 'MINI': 1, 'MITSU': 4, 'NISSA': 34, 'NS/OT': 9, None: 1, 'OLDSM': 1, 'PETER': 1, 'PLYMO': 1, 'PORSC': 1, 'ROVER': 2, 'SAAB': 1, 'SATUR': 2, 'SCION': 1, 'SMART': 2, 'SPRI': 1, 'STAR': 1, 'SUBAR': 10, 'TOYOT': 53, 'UD': 1, 'UPS': 1, 'VOLKS': 4, 'VOLVO': 6, 'WORKH': 1, 'YAMAH': 1}

epai3-assignment13's People

Contributors

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