python - Drop row in pandas dataframe if any value in the row equals zero -
how drop row if of values in row equal zero?
i use df.dropna() nan values not sure how "0" values.
i think easiest way looking @ rows values not equal 0:
df[(df != 0).all(1)]
Comments
Post a Comment