如何将数据帧中的字符串列表的列转换为熊猫系列?

时间:2020-08-16 21:38:59

标签: python pandas list dataframe series

                                         image_CONTAINS_OBJECT
           0      ['label', 'document', 'text', 'paper', 'poster...
           1      ['jaw', 'poster', 'crowd', 'word', 'people', '...
           2      ['clothing', 'adventure', 'building', 'apparel...
           3      ['reception room', 'furniture', 'person', 'ove...
           4      ['coat', 'people', 'apparel', 'court', 'interi...

你好!我有一个带有字符串列表列的数据框。我想将其转换为如下的熊猫系列:

  0  0         label
     1         document
     2         text
     3         paper
     4         poster 
  1  0         jaw
     1         poster
     2         crowd
     3         word
     4         people
  ...

如何执行从列到熊猫系列的转换?预先谢谢你!

0 个答案:

没有答案