Answers for "put csv into list python"

3

converting a csv into python list

import csv
with open('records.csv', 'r') as f:
  file = csv.reader(f)
  my_list = list(file)
print(my_list)
Posted by: Guest on July-12-2021
0

python csv to list

import csv
mycsv = list(csv.reader(datafile, delimiter=","))
Posted by: Guest on January-05-2022

Python Answers by Framework

Browse Popular Code Answers by Language