Question: PYTHON: 1. Reads the contents of the CSV data file into a floating point array data2 without using genfromtxtor any other pre-written file-reading function (read,
PYTHON:
1. Reads the contents of the CSV data file into a floating point array data2 without using genfromtxtor any other pre-written file-reading function (read, readlines, etc. are not pre-written file-reading functions but methods of a file object). Thus, you have to create a file object, use string methods to access, convert, etc. Make the first column be yyyy-mm-dd as a floating point number. .
2. Reads the contents of the CSV data file into a floating point array data3 using genfromtxt. Using what we've covered in this class, the first column of the array this call to genfromtxt returns will be filled with "nan"s (i.e., "not-a-number" values).
Step by Step Solution
There are 3 Steps involved in it
Requirement 1 Reading CSV Data into data2 To accomplish the first part of the requirement we will manually read the file convert it into a list of lis... View full answer
Get step-by-step solutions from verified subject matter experts
