Pandas Series of lists to one series

后端 未结 9 2189
野性不改
野性不改 2020-12-28 13:18

I have a Pandas Series of lists of strings:

0                           [slim, waist, man]
1                                [slim, waistline]
2                       


        
9条回答
  •  無奈伤痛
    2020-12-28 13:42

    series_name.sum()
    

    does exactly what you need. Do make sure it's a series of lists otherwise your values will be concatenated (if string) or added (if int)

提交回复
热议问题