Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. 0 1 2 3 4
  2. 0 0.381 0.794 0.000 0.964 0.304
  3. 1 0.538 0.029 0.000 0.327 0.928
  4. 2 0.041 0.312 0.000 0.208 0.284
  5. 3 0.406 0.786 0.000 0.334 0.118
  6. 4 0.511 0.166 0.000 0.181 0.980
  7.  
  8. df.filter(lambda x: x == 0)
  9.  
  10. import pandas, numpy as np
  11. # Create DataFrame "df" like yours...
  12.  
  13. df.apply(lambda x: np.all(x==0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement