Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 2 - RIders by Time of Day (Plese using Python and careful follow the instruction below:) If you are not following the instruction, you
Problem 2 - RIders by Time of Day (Plese using Python and careful follow the instruction below:)
If you are not following the instruction, you will NOT receive a thumb up
The instruction for this question might be a bit long, but I think you can solve it around 20 minutes!
Here is the instruction for the question:
Here is the Set-up for this question:
You can just easily copy paste all the setup codes and add new code in it :)
***References for the csv file:
Thank you!
Implement the function described below. If you comment out everything in the starter code from line 72 on, it will call the four functions written so far. It doesn't print anything, but you'll be able to see if any errors pop up. - Function \#2: split_by_time - Parameters: 2d list of strings (matches the structure of CSV file), a string for the time period we care about, an int for the column number where the time period column lives - Returns: a 2d list of strings - Does: Filters the original 2d list based on the given time period, returning a smaller 2d list with just the items that match the given time period Ex. Given the following arguments as described above - [ ["green", "time_period_ 01","2","3"], ["red", "time_period_ 1","2","4"], ["green", "time_period_ 02", "8", "1"], "time_period_ 1",1 This function should return: [["green", "time_period_01", "2", "3"], ["red", "time_period_01", "2", "4"]] mbta_data mbta_dataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started