Wypełnij brakujące wartości DICT

df.B = df.B.fillna(df.A.map(dict))
Real Raccoon