def imupte_age(cols): Age=cols[0] Pclass=cols[1] if pd.isnull(Age): if Pclass==1: return 38 elif Pclass==2: return 28 else