I have two dataframes
sessions = DataFrame({"ID":[1,2,3,4,5],"2018-06-30":[23,34,45,67,75],"2018-07-31":[32,43,45,76,57]})
leads = DataFrame({"ID":[1,2,3,4,5],"2018-06-30":[7,10,28,15,30],"2018-07-31":[7,10,28,15,30]})
I wanna merge the two dataframes on ID and then create a multi-index to look like:
How can I do it?
a direct pandas.merge will create suffixes_x, _y which I do not want.
