Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas read csv with lists

from ast import literal_eval


df.Col3 = df.Col3.apply(literal_eval)
print(df.Col3[0][0])
Proj1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #read #csv #lists
ADD COMMENT
Topic
Name
3+9 =