I would like to merge two tables, which shows here:
import pandas as pd
df1 = {'name': ['John','Katie','Emma', 'Brian'],
    'Stock name': ['Apple', 'Tesla','Samsung', 'NaN'], 
   'Price': [160,800,70, 'NaN],
  'country': ['US','US','KOR', 'NaN'],
  'No. Stock': ['4','10','50', 'NaN']}
df1 = pd.DataFrame(df1)
 data_2 = { 'Stock name': ['Tesla', 'Apple','Samsung', 'Google, 'Square'], 
   'Price': [150,900,110,3000,300]
                }
 df2 = pd.DataFrame(data_2)
RESULT:
name    Stock name  Price   country  No. Stock    
John    Apple        150    US           4
Katie   Tesla        900    US          10
Emma    Samsung      110    KOR         50
Brian   Google       300    NaN         NaN
So ideally I want to merge or use any functions to get the result something like this.
Thank you so much!!
 
     
    