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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -