пересечение данных на основе столбца
s1 = pd.merge(dfA, dfB, how='inner', on=['S', 'T'])
s1.dropna(inplace=True)
Real Raccoon
s1 = pd.merge(dfA, dfB, how='inner', on=['S', 'T'])
s1.dropna(inplace=True)