Skip to content

Instantly share code, notes, and snippets.

@anthonymorast
Created Aug 17, 2021
Embed
What would you like to do?
def top_performers_per_trade(data):
return data.sort_values(by=["avg_return"], ascending=False)[:5] # top 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment