Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pd merge on multiple columns

new_df = pd.merge(A_df, B_df,  how='left', left_on=['A_c1','c2'], right_on = ['B_c1','c2'])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pd #merge #multiple #columns
ADD COMMENT
Topic
Name
3+8 =