You have to develop a script that reads a CSV file and processes the data row by row. Which Python module would you use to read the CSV file?

  • csv
  • json
  • os
  • pandas

To read and process CSV files in Python, you would typically use the csv module. It provides functions like csv.reader() to easily read and parse CSV data row by row. Options os and json are not designed for CSV handling, and while pandas can handle CSVs, it is not a built-in Python module.

Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *