COMPUTER SCIENCE AND ENGINEERING
MACHINE LEARNING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Data Input and Output
|
|
Data Transformation
|
|
Model Training
|
|
None of the above
|
Detailed explanation-1: -In Python, the csv. reader() module is used to read the csv file. It takes each row of the file and makes a list of all the columns.
Detailed explanation-2: -Python provides a CSV module to handle CSV files. To read/write data, you need to loop through rows of the CSV. You need to use the split method to get data from specified columns.
Detailed explanation-3: -The csv module was incorporated in Python’s standard library as a result of PEP 305. It presents classes and methods to perform read/write operations on CSV file as per recommendations of PEP 305. CSV is a preferred export data format by Microsoft’s Excel spreadsheet software.
Detailed explanation-4: -Pandas DataFrame to csv() function converts DataFrame into CSV data.