# Drop rows which contain any NaN value in the selected columns mod_df = df.dropna( how='any', subset=['Name', 'Age'])