(self, key_type, cumulative=False)
return statistics
Group statistics by key_type. Return a sorted list of Statistic
        instances.
Group statistics by key_type. Return a sorted list of Statistic
        instances.
Group statistics by key_type . Return a sorted list of Statistic instances .
def statistics(self, key_type, cumulative=False):
        """
        Group statistics by key_type. Return a sorted list of Statistic
        instances.
        """
        grouped = self._group_by(key_type, cumulative)
        statistics = list(grouped.values())
        statistics.sort(reverse=True, key=Statistic._sort_key)
        return statistics
def statistics ( self , key_type , cumulative = False ) : grouped = self . _group_by ( key_type , cumulative ) statistics = list ( grouped . values ( ) ) statistics . sort ( reverse = True , key = Statistic . _sort_key ) return statistics