Computers and Technology
Computers and Technology, 19.07.2021 21:10, Edithh

In this problem, we're giving you a file containing some real data from #the Marta (Atlanta's subway system) database. Each line of the file is #a record of a single ride at a specific Marta station. Riders enter and #exit the subway system by tapping a Breeze Card against a gate at a #specific station. # #You can see a preview of what the file will look like in #marta_sample. csv in the dropdown in the top left. Note, however, that #the real dataset is massive: over 200,000 individual rides are recorded. #So, you're going to be dealing with some pretty big data! # #Each line of the file contains six items, separated by commas: # # - the transit day, in MM/DD/ format. # - the transit time, in HH:MM:SS format. # - the device ID, an identifer of the gate at which the rider entered. # - the station ID, a numeric identifier the station. # - the use type, whether the rider was entering, exiting, etc. # - a serial number, the unique identifier of the rider's Breeze Card. # #Your goal is to use this file to answer three questions: # # - What is the average number of Breeze Card taps per station? # - What is the station ID of the station whose traffic is the closest # to that average? # - What station has the least overall amount of traffic? # #Note that you will answer these questions in the fill-in-the-blank #problems below, _not_ in this coding exercise. So, you don't have to #programmatically find the station ID closest to the average: you could #just print all the stations and their averages, then visually check #which is closest to the average. # #To get you started, we've gone ahead and opened the file: marta_file = open('../resource/lib/public/marta_ 01-18-2016.csv', 'r') #You may add whatever code you want from here on to answer those three #questions. # #HINT: although there are six items on each line of the file, you only #need one of them: station ID. If you use split(",") to split up each #line, station ID will be at index 3 on the list. # #

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, blackjack73
3. (6 pts) internally in the computer, with few exceptions, all numerical computation is done using binary numbers. output, however, often uses ascii, which is formed by appending 011 to the left of a bcd code. thus, an algorithm that directly converts a binary integer to a bcd integer is very useful. here is one such algorithm 1) draw lines to the left of the binary number to bound the expected bcd decades. (each decade is a group of 4 bits.) move the binary number one bit to the left. add 0011 to each bcd decade containing a binary value> 0100 repeat steps 2-3 until the last bit in the binary number has been moved into the least significant decade position. (note that when the last bit has been shifted into bcd decade, step 3 is not repeated.) read the bcd result. 2) 3) 4) 5) a) execute the algorithm for the binary number 1101101 b) execute the algorithm for the binary number 01110101110 4. (4 pts) represent the decimal number 3568 in bcd; excess-3 code; ascil; and hex.
Answers: 1
image
Computers and Technology, 22.06.2019 14:00, GGerardi7552
What are procedures that keep a data base current
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, alannaamarriee
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
image
Computers and Technology, 23.06.2019 15:10, cathyjuan
What role did women fill during world war ii?
Answers: 1
Do you know the correct answer?
In this problem, we're giving you a file containing some real data from #the Marta (Atlanta's subway...

Questions in other subjects:

Konu
English, 11.10.2021 17:50
Konu
Mathematics, 11.10.2021 17:50