Answers for "python pandas join on multiple columns site:stackoverflow.com"

1

python inner join based on two columns

df  = pd.merge(left=df1, right=df2, on=['var_1', 'var_2'], how='inner']
Posted by: Guest on December-08-2020

Code answers related to "python pandas join on multiple columns site:stackoverflow.com"

Python Answers by Framework

Browse Popular Code Answers by Language