5bd1e60a5b93b52d6e6f4177c980cab3b3982eef,hypertools/tools/missing_inds.py,,missing_inds,#Any#,7

Before Change



    x = format_data(x)

    inds = [[idx for idx,row in enumerate(arr) if any(np.isnan(row))] for arr in x]

    if len(inds) > 1:
        return inds
    else:

After Change


        if np.argwhere(np.isnan(arr)).size is 0:
            inds.append(None)
        else:
            inds.append(np.argwhere(np.isnan(arr)))

    if len(inds) > 1:
        return inds
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ContextLab/hypertools
Commit Name: 5bd1e60a5b93b52d6e6f4177c980cab3b3982eef
Time: 2017-10-06
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/missing_inds.py
Class Name:
Method Name: missing_inds


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: pmorissette/bt
Commit Name: d257ce051723c78bdf3f6c5e9387f1f7f54dd7a5
Time: 2016-04-09
Author: morissette.philippe@gmail.com
File Name: bt/algos.py
Class Name: Rebalance
Method Name: __call__