我有一个类似下面的pandas DataFrame:
info number names
0 'boo' 10 ['John', 'Harry', 'Vincent']
1 'far' 45 ['Andrea']
2 'foo' 23 ['Juliet', 'Anna']
我想把它变成这样:
f s info number names
0 0 'boo' 10 'John'
1 'boo' 10 'Harry'
2 'boo' 10 'Vincent'
1 0 'far' 45 'Andrea'
2 0 'foo' 23 'Juliet'
1 'foo' 23 'Anna'