我的数据框包含包含列表的列:
float
我想重新排列我的数据,以便我的数据框的每一列中的列表被解压缩并与解压缩的下一列中的相应项组合。
我的示例中前两行的结果应如下所示:
0 [Boeing] [sells]
1 [aircrafts, they, agreement, airplane] [are, built, made, built]
2 [exception, these] [are, are]
3 [sales, contract] [regulated, consist]
4 [contract] [stipulates]
5 [acquisition] [has]
6 [contract] [managed]
7 [employee] [act]
8 [salesperson, Boeing] [change, ensures]
9 [airlines, airlines] [related, have]
10 [Boeing] [keep]
如何做到这一点?请注意,我的数据框总共包含5列。