I wonder if there is a direct way to import the contents of a CSV file into a record array, much in the way that R\'s read.table(), read.delim(), a
read.table()
read.delim()
This is the easiest way:
import csv with open('testfile.csv', newline='') as csvfile: data = list(csv.reader(csvfile))
Now each entry in data is a record, represented as an array. So you have a 2D array. It saved me so much time.