0

I have a table like that.

   NAME      Age     shop_list
0  [A, B]     30      [AA,BB]
1  [C, D, E]  40     [CC,DD,EE]
2  [F, G,H]   33     [FF,GG,HH]
3  [I, J]     22     [II,JJ]

I want to split the name into different rows for the next step for merge to another table. Just like that.

    NAME      Age     shop_list
0    A        30      [AA,BB]
1    B        30      [AA,BB]
2    C        40     [CC,DD,EE]
3    D        40     [CC,DD,EE]
4    E        40     [CC,DD,EE]
5    F        33     [FF,GG,HH]
6    G        33     [FF,GG,HH]
7    H        33     [FF,GG,HH]
8    I        22      [II,JJ]
9    J        2       [II,JJ]
Z.L
  • 147
  • 8

0 Answers0