0

I want to drop all rows that don't have in column Value (dtype is float64) a 0 or NaN

df = df.drop(df[(df["Value"] != 0) & df["Value"].notna()].index, inplace=True)

But when I do it this way my df turns out being a NoneType.

What's the issue?

0 Answers0