Question: In python create the following program. Link to excel worksheet is below https://data.cityofnewyork.us/Public-Safety/NYPD-Motor-Vehicle-Collisions/h9gi-nx95. Write a program that asks the user for a CSV of collision
In python create the following program. Link to excel worksheet
is below
https://data.cityofnewyork.us/Public-Safety/NYPD-Motor-Vehicle-Collisions/h9gi-nx95.
Write a program that asks the user for a CSV of collision data (see note below about obtaining reported collisions from NYC OpenData). Your program should then list the top three contributing factors for the primary vehichle of collisions C"CONTRIBUTING FACTOR VEHICLE I") in the file. A sample run Enter CSV file name: collisionsNewYears2016.csv Top three contributing factors for collisions: Driver Inattention/Distraction 136 Unspecified Following Too Closely Name : CONTRIBUTING FACTOR VEHICLE 1, dtype: int64 119 37 This assignment uses collision data collected and made publicly by New York City Qpen Data, and can be found at https://data.cityofnewyork.us/Public-Safety/NYPD-Motor-Vehicle-Collisions h9gi-nx95 Since the files are quite large, use the "Filter" option and choose your birthday in 2016 and "Export" in CSV format) al collisions for that day. We will use this data set for future programs, so, instead of downloading the test files multiple times, save a copy for future use r (in Write a program that asks the user for a CSV of collision data (see note below about obtaining reported collisions from NYC OpenData). Your program should then list the top three contributing factors for the primary vehichle of collisions C"CONTRIBUTING FACTOR VEHICLE I") in the file. A sample run Enter CSV file name: collisionsNewYears2016.csv Top three contributing factors for collisions: Driver Inattention/Distraction 136 Unspecified Following Too Closely Name : CONTRIBUTING FACTOR VEHICLE 1, dtype: int64 119 37 This assignment uses collision data collected and made publicly by New York City Qpen Data, and can be found at https://data.cityofnewyork.us/Public-Safety/NYPD-Motor-Vehicle-Collisions h9gi-nx95 Since the files are quite large, use the "Filter" option and choose your birthday in 2016 and "Export" in CSV format) al collisions for that day. We will use this data set for future programs, so, instead of downloading the test files multiple times, save a copy for future use r (in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
