Substring Index Python Pandas Dataframe Merge On Several Columns