Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- top_20_percent = df.iloc[df[column].nlargest(int(len(df) * 0.2))]
- *******************************************
- top_20_percent = df.nlargest(int(len(df) * 0.2), columns='column_name')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement