join dataframe but keep only one column code example
Example: python - merge and incluse only specific columns
right.merge(left, on=['key1','key2'])[['A','B','C','key1','key2']]
right.merge(left, on=['key1','key2'])[['A','B','C','key1','key2']]