import pandas as  pd
ind_wt = pd.DataFrame({
	"city":["mumbai","delhi","surat","pune"],
	"temp":[45,23,14,20],
	
})

us_wt = pd.DataFrame({
	"city":["mumbai","delhi","adi"],
	"humidity":[55,10,72]
})

df = pd.merge(ind_wt,us_wt,on="city",how="left")
#df = pd.merge(ind_wt,us_wt,on="city",how="right")
print(df)
1b69880f6df2d5198ed1543526ea31af30876d05
<mask token>

<mask token>
print(df)

<mask token>
ind_wt = pd.DataFrame({'city': ['mumbai', 'delhi', 'surat', 'pune'], 'temp':
    [45, 23, 14, 20]})
us_wt = pd.DataFrame({'city': ['mumbai', 'delhi', 'adi'], 'humidity': [55, 
    10, 72]})
df = pd.merge(ind_wt, us_wt, on='city', how='left')
print(df)

import pandas as pd
ind_wt = pd.DataFrame({'city': ['mumbai', 'delhi', 'surat', 'pune'], 'temp':
    [45, 23, 14, 20]})
us_wt = pd.DataFrame({'city': ['mumbai', 'delhi', 'adi'], 'humidity': [55, 
    10, 72]})
df = pd.merge(ind_wt, us_wt, on='city', how='left')
print(df)

import pandas as  pd
ind_wt = pd.DataFrame({
	"city":["mumbai","delhi","surat","pune"],
	"temp":[45,23,14,20],
	
})

us_wt = pd.DataFrame({
	"city":["mumbai","delhi","adi"],
	"humidity":[55,10,72]
})

df = pd.merge(ind_wt,us_wt,on="city",how="left")
#df = pd.merge(ind_wt,us_wt,on="city",how="right")
print(df)