def kurtosis(data):

    if len(data) == 0:
        return None

    num = moment(data, 4)
    denom = moment(data, 2) ** 2.

    return num / denom if denom != 0 else 0
Given a dictionary of filters, create the necessary ORM-level filters.
dataset/ETHPy150Open yvesalexandre/bandicoot/bandicoot/helper/tools.py/kurtosis--crossover with--dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastypie/tastypie/resources.py/ModelResource.build_filters