How to sort a list of communities by engagement?
How to sort a list of communities by engagement?
I have a list of communities, each with total votes, upvote percentage, and the community name. I want to sort the list by 'engagement,' which would be some combination of total votes and upvote percentage. What is the best way to do this? What would be the best measure of 'engagement' with each community given this data?
https://docs.python.org/3/library/stdtypes.html#list.sort
supply a function as key that produces a numerical value for whatever you define as "engagement".