I want to merge two dataframe on index and want to return only the distinct columns present after merging.
Currently, I am using - pd.merge(X_train, all_data, left_index=True, right_index=True), to merge. But all columns are returned, by appending _x and _y to the end of the column name for identification.
I just need the distinct columns.
Thanks!