Question: Write a function card _ details ( data ) that takes data from the read _ data ( filename ) function, collects the timestamp and
Write a function carddetailsdata that takes data from the readdatafilename function, collects the timestamp and other relevant data associated with each transaction and returns the list preprocesseddata. Remember, this list does NOT contain the heading row and there are more columns than necessary for this project in the CSV file. The data are collected as a tuple, and the list contains the tuples and the preprocesseddata list contains the tuples.
Please note that the order of columns in the provided CSV file may differ from file to file, so you should not assume that the column will be in the same order as the sample CSV file. You should use the header row the first row in the CSV file to identify the correct column based on its name, rather than its position in the file. Ensure that entries are stored in appropriate data type ie numbers are stored in integers or floats depending on the data type and so on
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
