477d91fafb5ecdc5e680ac70b32e9ea247a3be00,skbio/maths/stats/distance/base.py,CategoricalStats,_df_to_vector,#CategoricalStats#Any#Any#Any#,80

Before Change


            if id_ not in df[column]:
                raise ValueError("Distance matrix ID "%s" not in data frame." %
                                 id_)
            grouping.append(df[column][id_])

        return grouping

    def __call__(self, permutations=999):

After Change


            raise ValueError("Column "%s" not in data frame." % column)

        grouping = df[column][list(distance_matrix.ids)]
        if grouping.isnull().any():
            raise ValueError("One or more IDs in the distance matrix are not "
                             "in the data frame.")
        return grouping

    def __call__(self, permutations=999):
        Execute the statistical method.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biocore/scikit-bio
Commit Name: 477d91fafb5ecdc5e680ac70b32e9ea247a3be00
Time: 2014-05-07
Author: jai.rideout@gmail.com
File Name: skbio/maths/stats/distance/base.py
Class Name: CategoricalStats
Method Name: _df_to_vector


Project Name: ClimbsRocks/auto_ml
Commit Name: 33851dea0f6c75ca1e685037393ea7160506b53a
Time: 2016-10-08
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: _prepare_for_training


Project Name: nilmtk/nilmtk
Commit Name: 53cae75693123cd523ef2af3c425a48c10a9f633
Time: 2015-08-31
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name:
Method Name: get_activations