import csv with open('records.csv', 'r') as f: file = csv.reader(f) my_list = list(file) print(my_list)
import pandas as pd df = pd.read_csv('csvfile.csv', sep=',') list_of_lists = [list(x) for x in df.values] print(list_of_lists)