df = ({'a':[0,1,4],'b' : [10,2,5]})
y = [5,6]
for i in y:
x = df._append([{df.columns[0]: i}], ignore_index = True)
print(x)
Result is :
{'a':[0,1,4,6],
'b' : [10,2,5]}
Result Should be:
{'a':[0,1,4,5,6],
'b' : [10,2,5]}
Any help please?