Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

Here is the Set-up for this question:

You can just easily copy paste all the setup codes and add new code in it :)

image text in transcribed

image text in transcribed

***References for the csv file:

image text in transcribed

image text in transcribed

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_data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Is this unethical marketing? Explain why or why not.

Answered: 1 week ago