I want to drop rows with zero value in specific columns
>>> df salary age gender 0 10000 23 1 1 15000 34 0 2 23000 21 1 3 0 20 0 4 28500 0 1 5 35000 37 1 some data in columns salary and age are missing and the third column, gender is a binary variables, which 1 means male 0 means female. And 0 here is not a missing data, I want to drop the row in either salary or age is missing so I can get
>>> df salary age gender 0 10000 23 1 1 15000 34 0 2 23000 21 1 3 35000 37 1
df = df[(df['salary'] > 0) & (df['age'] > 0)]