Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df = pd.DataFrame(np.arange(0, 20, 0.5).reshape(8, 5), columns=['a', 'b', 'c', 'd', 'e'])
- df.loc[df['a'] >= 15]
- a b c d e
- 6 15.0 15.5 16.0 16.5 17.0
- 7 17.5 18.0 18.5 19.0 19.5
- df[df['a'] >= 15]
- a b c d e
- 6 15.0 15.5 16.0 16.5 17.0
- 7 17.5 18.0 18.5 19.0 19.5
Add Comment
Please, Sign In to add comment