I have two dataframes below:
dfA = pd.DataFrame([[3,"here",34]],columns = ["comp_id","mail","mean"])
dfB = pd.DataFrame([[23,3,"there"]], columns = ["alt","name_id","serv"])
dfA
comp_id mail mean
0 3 "here" 34
dfB
alt name_id serv
0 23 3 "there"
I want to join both data frames on comp_id = name_id
Output:
mail mean alt serv
0 "here" 34 23 "there"
The output should not include comp_id or name_id.
Any suggestions on how I can do this?