Link to Data File (Parking.csv): https://data.cityofnewyork.us/City-Government/Open-Parking-and-Camera-Violations/nc67-uf89 In this assignment, you will analyze a large public data set in an effort to answer one of the burning questions of our time: Who isn't paying their parking tickets? The work you will do in this assignment is a variation of something done in the amazing and popular blog I Quant NY (Links to an external site.). You should read the original article here (Links to an external site.). In a nutshell, we are going look at New York City parking ticket data and determine which country's diplomats owe and how much. The entire data set is available online but it's way too big for our purposes so you will trim it down to only include tickets for street cleaning violations and only those tickets that still have an amount due of over $50.00. You must download the data file for this assignment here.  (Links to an external site.)You can use the online filter features or whatever your favorite spreadsheet editor is to remove the undesired tickets and information but the result should be a large CSV file that is in the same format as this  Download this example file.  your collection of parking tickets can be represented as a single DataFrame. Problem 1 Use pandas to read Parking.csv and store the entire dataset as a DataFrame.   Problem 2 Write a Python function that takes as input a DataFrame containing all of the ticket information and a plate string and returns a tuple containing the following information: (number of open violations, total dollar amount due of all open violations)   Problem 3 Write a Python function to determine which car owes the most money. Your function should take a DataFrame containing the parking ticket information as input and should return a tuple containing the following information (plate number, total amount due) associated with whichever car owes the most money.   Problem 4 Determine how much money diplomatic cars from Egypt owe in total. Also determine which particular car (which plate) from Egypt owes the most money and how much. Finally, determine in which year between 1995-2019 Egypt owed the most money and how much was it. NB: The second & third letters on the plate are country codes that the government created for these licenses plate. Egypt second & third letter on the plate is : TH

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

Link to Data File (Parking.csv): https://data.cityofnewyork.us/City-Government/Open-Parking-and-Camera-Violations/nc67-uf89

In this assignment, you will analyze a large public data set in an effort to answer one of the burning questions of our time: Who isn't paying their parking tickets? The work you will do in this assignment is a variation of something done in the amazing and popular blog I Quant NY (Links to an external site.). You should read the original article here (Links to an external site.). In a nutshell, we are going look at New York City parking ticket data and determine which country's diplomats owe and how much. The entire data set is available online but it's way too big for our purposes so you will trim it down to only include tickets for street cleaning violations and only those tickets that still have an amount due of over $50.00. You must download the data file for this assignment here.  (Links to an external site.)You can use the online filter features or whatever your favorite spreadsheet editor is to remove the undesired tickets and information but the result should be a large CSV file that is in the same format as this  Download this example file.

 your collection of parking tickets can be represented as a single DataFrame.

Problem 1 Use pandas to read Parking.csv and store the entire dataset as a DataFrame.

 

Problem 2 Write a Python function that takes as input a DataFrame containing all of the ticket information and a plate string and returns a tuple containing the following information: (number of open violations, total dollar amount due of all open violations)

 

Problem 3 Write a Python function to determine which car owes the most money. Your function should take a DataFrame containing the parking ticket information as input and should return a tuple containing the following information (plate number, total amount due) associated with whichever car owes the most money.

 

Problem 4 Determine how much money diplomatic cars from Egypt owe in total. Also determine which particular car (which plate) from Egypt owes the most money and how much. Finally, determine in which year between 1995-2019 Egypt owed the most money and how much was it.

NB: The second & third letters on the plate are country codes that the government created for these licenses plate. Egypt second & third letter on the plate is : TH

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of trees
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education