0

After using pandas Group by data frame becomes

model  item_list
a      [l1,l5,l3,l4,l7,l9,l10]
b      [l2,l6,l1,l5]
c      [l1,l3]

And the expected output is

model  item_list
    a      l1
    a      l5
    a      l4
    a      l7
    a      l9
    a      l10
    b      l2
    b      l6
    b      l1
    b      l5
    c      l1
    c      l3

Is there any approach to get it done with less computation as the actual data is very large?

Please note the original dataframe row item_list consist of []

0 Answers0