f80b5ae1f55a979e24fd8afcea2c1fab280b0c70,featuretools/synthesis/encode_features.py,,encode_features,#Any#Any#Any#Any#Any#Any#Any#,7

Before Change



        X.drop(f.get_name(), axis=1, inplace=True)

    new_X = X[[e.get_name() for e in encoded] + extra_columns]
    iterator = new_X.columns
    if verbose:
        iterator = make_tqdm_iterator(iterable=new_X.columns,
                                      total=len(new_X.columns),

After Change


    encoded = []
    feature_names = []
    for feature in features:
        for fname in feature.get_feature_names():
            assert fname in X.columns, (
                "Feature %s not found in feature matrix" % (fname)
            )
        feature_names.append(fname)

    extra_columns = [col for col in X.columns if col not in feature_names]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Featuretools/featuretools
Commit Name: f80b5ae1f55a979e24fd8afcea2c1fab280b0c70
Time: 2019-01-18
Author: roy.wedge@gmail.com
File Name: featuretools/synthesis/encode_features.py
Class Name:
Method Name: encode_features


Project Name: CellProfiler/CellProfiler
Commit Name: 53059cec9053a8429b7f0a8f06e6cbe1672b60e7
Time: 2013-01-16
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/groups.py
Class Name: Groups
Method Name: on_activated


Project Name: Featuretools/featuretools
Commit Name: f80b5ae1f55a979e24fd8afcea2c1fab280b0c70
Time: 2019-01-18
Author: roy.wedge@gmail.com
File Name: featuretools/computational_backends/pandas_backend.py
Class Name:
Method Name: set_default_column