Dataframe One
number email name
0 1234 me@mail.com Me
1 5678 you@mail.com You
2 9012 us@mail.com Us
3 3456 them@mail.com Them
Dataframe Two
email name open click
0 you@mail.com You 31 7
1 them@mail.com Them 84 15
2 me@mail.com Me 6 1
3 us@mail.com Us 0 4
I would like to combine the two dfs so I end up with one df only that combines the two:
Desired Output:
number email name open click
0 1234 me@mail.com Me 6 1
1 5678 you@mail.com You 31 7
2 9012 us@mail.com Us 0 4
3 3456 them@mail.com Them 84 15
What is confusing me is how to ensure the data in columns 'open' and 'click' from dataframe two matches up correctly when combined with dataframe one as the 'email' and 'name' columns are in a different order in each dataframe.