Advertisement
elena1234

highest of the top 10% values in Python

Oct 20th, 2023 (edited)
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | Source Code | 0 0
  1. highest10p = np.round(0.1*len(df),2).astype(int)
  2. df.nlargest(highest10p, 'value')
  3.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement