Question: Python Question B2: CSV file [2 points] Write Python code that reads the file drug_arrests.csv and produces two lists: dates should be a list of
Python Question B2: CSV file [2 points]
Write Python code that reads the file drug_arrests.csv and produces two lists:
dates should be a list of integers from the year column in the file (as integers).
arrests should be a list of arrests for marijuana posession from the arrests column in the file, as integers![Python Question B2: CSV file [2 points] Write Python code that reads](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3a27f71b61_87866f3a27eeb7f9.jpg)
Question B2: CSV file [2 points] Write Python code that reads the file drug arrests.csv and produces two lists: dates should be a list of integers from the year column in the file (as integers). arrests should be a list of arrests for marijuana posession from the arrests column in the file, as integers # YOUR CODE HERE raise NotImplementedError() Here are some sample test cases to help check you have read the data in correctly. dates[e] 1990 arrests[]20940
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
