Dataframe One
number email name
0 1234 [email protected] Me
1 5678 [email protected] You
2 9012 [email protected] Us
3 3456 [email protected] Them
Dataframe Two
email name open click
0 [email protected] You 31 7
1 [email protected] Them 84 15
2 [email protected] Me 6 1
3 [email protected] 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 [email protected] Me 6 1
1 5678 [email protected] You 31 7
2 9012 [email protected] Us 0 4
3 3456 [email protected] 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.