0

I have a dataframe in which out of various columns there is a quantity column.

This column has some entries with zero.

I want to drop rows from the dataframe which has quantity as zero, like-

df[quantity] = df[quantity > 0]

Is the above approach is correct or any better way to do so?

AnalyticsPy
  • 245
  • 2
  • 14

0 Answers0