I want to grow a serie in a for loop like that:
panda1 = pd.DataFrame([1, 2 ,3], columns=['test'])
panda2 = pd.DataFrame(['a', 'b', 'c'], columns=['test'])
for i in range(1,3):
panda1['test'] = panda1['test'].append(panda2['test'], ignore_index=True)
I want that panda1['test'] contains [1, 2, 3, a, b, c, a, b, c]. But it only contains [1, 2, 3]
What am I doing wrong here?
Edit: I do not want to concat dataframes, I want to concat series. Because I want do it with a specific column (in the example it is ['test']). I know that concat can handle series, too. But when i do it with the ['test'] series, the same happens what i described above. When i do the concat with the whole dataframe panda1 and panda2 without the '['test']', it works properly. Why does it not work with Series?