0

I want to delete all rows if any of the values โ€‹โ€‹of the following columns ('Glucose','BloodPressure','SkinThickness','Insulin','BMI') is equal to zero.

diabetes dataframe

What is the most efficient way?

  • `out = df[~df[['Glucose','BloodPressure','SkinThickness','Insulin','BMI']].eq(0).any(axis=1)]` โ€“ mozway Dec 05 '22 at 13:25

0 Answers0