Module ImportFrom alias Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body TryExcept body Expr Yield TupleLoad NameLoad BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore BinOpMult NameLoad NameLoad AugAssignAdd NameStore Num TryExcept body Return BinOpSub Num BinOpDiv BinOpMult Num NameLoad BinOpMult NameLoad BinOpSub BinOpMult NameLoad NameLoad Num handlers ExceptHandler type NameLoad body Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore NameLoad Assign NameStore Num For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body TryExcept body If CompareGt Call NameLoad BinOpSub NameLoad NameLoad NameLoad body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass Expr Yield TupleLoad NameLoad NameLoad Assign NameStore NameLoad decorator_list
N/A __future__ division N/A 
Tools for comparing ranked lists.
 _rank_dists N/A N/A ranks1 ranks2 N/A N/A N/A Finds the difference between the values in ranks1 and ranks2 for keys
    present in both dicts. If the arguments are not dicts, they are converted
    from (key, rank) sequences.
     N/A ranks1 N/A dict ranks1 N/A ranks2 N/A dict ranks2 N/A k ranks1 N/A N/A N/A N/A N/A N/A k N/A N/A ranks1 N/A k N/A ranks2 N/A k N/A N/A N/A KeyError N/A N/A N/A spearman_correlation N/A N/A ranks1 ranks2 N/A N/A N/A Returns the Spearman correlation coefficient for two rankings, which
    should be dicts or sequences of (key, rank). The coefficient ranges from
    -1.0 (ranks are opposite) to 1.0 (ranks are identical), and is only
    calculated for keys in both rankings (for meaningful results, remove keys
    present in only one list before ranking). N/A n 0 N/A res 0 N/A N/A k d N/A _rank_dists ranks1 ranks2 N/A N/A res N/A d d N/A n 1 N/A N/A N/A N/A 1 N/A N/A 6 res N/A n N/A N/A n n 1 N/A N/A N/A ZeroDivisionError N/A N/A 0.0 N/A ranks_from_sequence N/A N/A seq N/A N/A N/A Given a sequence, yields each element with an increasing rank, suitable
    for use as an argument to ``spearman_correlation``.
     N/A N/A N/A k i N/A N/A i k N/A enumerate seq N/A ranks_from_scores N/A N/A scores rank_gap N/A 1e-15 N/A N/A Given a sequence of (key, score) tuples, yields each key with an
    increasing rank, tying with previous key's rank if the difference between
    their scores is less than rank_gap. Suitable for use as an argument to
    ``spearman_correlation``.
     N/A prev_score None N/A rank 0 N/A N/A i N/A key score N/A enumerate scores N/A N/A N/A N/A N/A N/A abs N/A score prev_score rank_gap N/A N/A rank i N/A N/A N/A TypeError N/A N/A N/A N/A N/A key rank N/A prev_score score N/A