pandas在循环中插入和追加一个新的数据框



我想将NER引擎的输出插入到数据框中,如下所示

<表类> id tbody><<tr>12

我可能已经弄明白了。我使用了一个空列表来计算条目的数量,下面是代码

dfner.loc[len(listname)-1, 'match'] = ent.label_
dfner.loc[len(listname)-1, 'id'] = str(id)

相关内容

最新更新