paintdog / ranking-problems

Some functions to handle some ranking problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ranking Problems

This module offers some functions to handle some problems related to the ranking.

get_change_as_string(change)
Takes change (float or integer) and generates a string (e. g. "+8.2", "0" or "-4").
get_change_in_ranking(rank, previous_rank)
Calculates the difference between the actual and the previous rank.
get_value2ranks(values)
Generates a dictionary which assigns a rank to a value.

Maybe of benefit to somebody.

About

Some functions to handle some ranking problems

License:MIT License


Languages

Language:Python 100.0%