I would like to generate an Empty Dataframe and then adding a list as a new column with header to this DataFrame, I have such a code:
#define an empty dataframe
df()
start=0
for row in list1:
blist=list()
for data in list2:
blist.append(data.Ordertype[0:row._c1])
start=start + row._c1
#I would like to append blist now to dataframe df() in this line
How can I do that? Do you have any Idea?