I have 3 pandas dataframes. I would like to append one row from each in each iteration to an existing dataframe.
Example shown below:
DF1 =
col1 col2 col3
a a a
d d d
g g g
DF2=
col1 col2 col3
b b b
e e e
h h h
DF3=
col1 col2 col3
c b b
f f f
i i i
clean_DF =
col1 col2 col3
a a a
b b b
c c c
d d d
e e e
f f f
g g g
h h h
i i i
Dummy code:
for i,j in df1.itterows():
for a,b in df2.itterows():
for c,d in df2.itterrows():
clean_df.append(i,j,a,b,c,d)
Please could someone point me in the right direction?