I am trying to add a new row to the dataframe df
based on this post but I'm getting the syntax wrong. What am I missing?
df = pd.DataFrame(columns=['poll1', 'poll2','tval','pval'])
temp = pd.DataFrame([0,0,1,2], columns=['poll1', 'poll2','tval','pval'])
df.append(temp)
print(df)