Guest User

Untitled

a guest
Nov 14th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. df = pd.DataFrame(np.arange(0, 20, 0.5).reshape(8, 5), columns=['a', 'b', 'c', 'd', 'e'])
  2.  
  3.  
  4. df.loc[df['a'] >= 15]
  5.  
  6. a b c d e
  7. 6 15.0 15.5 16.0 16.5 17.0
  8. 7 17.5 18.0 18.5 19.0 19.5
  9.  
  10. df[df['a'] >= 15]
  11.  
  12. a b c d e
  13. 6 15.0 15.5 16.0 16.5 17.0
  14. 7 17.5 18.0 18.5 19.0 19.5
Add Comment
Please, Sign In to add comment