I have a CSV file with about 2000 records.
Each record has a string, and a category to it:
This is the firs
You can use the list() function to convert csv reader object to list
list()
import csv with open('input.csv') as csv_file: reader = csv.reader(csv_file, delimiter=',') rows = list(reader) print(rows)