I have two dataframes like this:
dataframe1
col1 col2
s8771 1
s9562 1
s3352 1
dataframe2
col1 col2
s834 0
s5216 0
s8104 0
s174 0
I want to combine both dataframes, I know pd.append
but what I want is one row from each dataframe at a time. As an output:
result
col1 col2
s8771 1
s834 0
s9562 1
s5216 0
s3352 1
s8104 0
s174 0
Any help please?