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?
Converting the list to a data frame within the append function works, also when applied in a loop
import pandas as pd mylist = [1,2,3] df = pd.DataFrame() df = df.append(pd.DataFrame(data[mylist]))