Skip to content

Instantly share code, notes, and snippets.

@anthonymorast
Created Aug 17, 2021
Embed
What would you like to do?
def percent_profitable(data):
return len(data.loc[data.profit > 0]) / len(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment