21d7042c38a23d4cfe6278ddd5fa1c247af4e376,ggplot/stats/stat_density.py,,compute_density,#Any#Any#Any#,60

Before Change


    try:
        y = kde.evaluate(x2)
    except ValueError:
        y = np.array([kde.evaluate(_x)[0] for _x in x2])

    return pd.DataFrame({"x": x2,
                         "density": y,

After Change


    // these values and corresponding x2s are dropped.
    // The kernel domain is defined by the values in x, but
    // the evaluated values in x2 could have a much wider range.
    not_nan = ~np.isnan(y)
    x2 = x2[not_nan]
    y = y[not_nan]

    // print(np.sum(np.isnan(y)))
    return pd.DataFrame({"x": x2,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: has2k1/plotnine
Commit Name: 21d7042c38a23d4cfe6278ddd5fa1c247af4e376
Time: 2016-07-11
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_density.py
Class Name:
Method Name: compute_density


Project Name: JasonKessler/scattertext
Commit Name: 75d9f7bb2949e1719b6354ae996b46ec0b29cd18
Time: 2018-02-06
Author: jason.kessler@gmail.com
File Name: scattertext/semioticsquare/SemioticSquare.py
Class Name: SemioticSquare
Method Name: _build_axes


Project Name: scikit-learn-contrib/boruta_py
Commit Name: b54962613e66dc057a2c67000573d72db04034d4
Time: 2018-02-08
Author: dirk.biesinger@gmail.com
File Name: boruta/boruta_py.py
Class Name: BorutaPy
Method Name: _assign_hits