df.drop(df.index[df['myvar'] == 'specific_name'], inplace = True)
# Keeps only rows without a missing value df = df[df['name'].notna()]