def litemfreq(inlist):
    scores = pstats.unique(inlist)
    scores.sort()
    freq = []
    for item in scores:
        freq.append(inlist.count(item))
    return pstats.abut(scores, freq)
Input validation on an array, list, sparse matrix or similar.
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/litemfreq--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/utils/validation.py/check_array