So I have initialized an empty pandas DataFrame and I would like to iteratively append lists (or Series) as rows in this DataFrame. What is the best way of doing this?
Following onto Mike Chirico's answer... if you want to append a list after the dataframe is already populated...
>>> list = [['f','g']] >>> df = df.append(pd.DataFrame(list, columns=['col1','col2']),ignore_index=True) >>> df col1 col2 0 a b 1 d e 2 f g