To describe the issue directly,
Dataframe A :
A B C D E (No rows)
Dataframe B :
A B F John 1 0 1 Mary