Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert csv file into python 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)
Source by www.alixaprodev.com #
 
PREVIOUS NEXT
Tagged: #convert #csv #file #python #list
ADD COMMENT
Topic
Name
6+9 =