If we want to drop a row in which any column has a missing value we can do this:
df.dropna(axis = 0, how = 'any', inplace = True)
How do we do the same if we want to drop a row in which any column of that row, has a certain value (let's say a column has the value "turtle")?
Some column of row x contains "turtle" so we drop it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…