1、切记重新赋值,否则添加不成功
2、设置ignore_index=True
x = pd.DataFrame()
event = {}
event['a'] = 2
event['b'] = 3
x = x.append(event,ignore_index=True)
1、切记重新赋值,否则添加不成功
2、设置ignore_index=True
x = pd.DataFrame()
event = {}
event['a'] = 2
event['b'] = 3
x = x.append(event,ignore_index=True)