def aitchison_aitken_cdf(h, Xi, x_u):
    x_u = int(x_u)
    Xi_vals = np.unique(Xi)
    ordered = np.zeros(Xi.size)
    num_levels = Xi_vals.size
    for x in Xi_vals:
        if x_u <= x:  #FIXME: why a comparison for unordered variables?
            ordered += aitchison_aitken(h, Xi, x, num_levels=num_levels)

    return ordered
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/nonparametric/kernels.py/aitchison_aitken_cdf/swapped operands of `<=`