How to get a single list of items from dataframe

R.singh :

I have a data frame like

ID     Values
"ron"  ['1','2']
"ron1" ['10']
"john" []

and I want an output list to be like

output_list=['1','2','10']
YOBEN_S :

IIUC

sum(df['Values'].tolist(),[])
Out[603]: ['1', '2', '10']

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=376828&siteId=1