How to get merged data frame from two data frames having common column value such that only those rows make merged data frame having common value in a particular column.
If you want to merge two dataframes and you want a merged data frame in which only common values from both data frames will appear then do inner merge.
import pandas as pd
merged_Frame = pd.merge(df1,df2, on = id,how=inner)