My dataframe (df_UP) looks like this:
Total_trends #up #down #flat 0.05 811 326 310 175 I am using a jupyter notebook, when I try to append a row with the following code:
`d = {'Total_trends': [total.time], '#up': [good_trigger.time], '#down': [bad_trigger.time], '#flat': [flat.time]} df_UP.append(d, ignore_index=True)` It works the first time:
Total_trends #up #down #flat 0 811 326 310 175 1 [811] [326] [310] [175] But when I run again the cell with other values in d, it just overwrites the existing data at row 1 with the new one, any idea why? Thanks!
df_UP = df_UP.append(pd.DataFrame(d), ignore_index=True)?df_UP = df_UP.append(pd.DataFrame(d), ignore_index=True)works! you can add it as answer, I will validate it! thanks!