Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

data frame list value change to string

df['liststring'] = [','.join(map(str, l)) for l in df['lists']]
df

                lists    liststring
0  [1, 2, 12, 6, ABC]  1,2,12,6,ABC
1     [1000, 4, z, a]    1000,4,z,a
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #data #frame #list #change #string
ADD COMMENT
Topic
Name
3+6 =