f80b5ae1f55a979e24fd8afcea2c1fab280b0c70,featuretools/computational_backends/pandas_backend.py,PandasBackend,_calculate_agg_features,#PandasBackend#Any#Any#,362

Before Change


        iterfeats = [f for f in features
                     if hasattr(f.default_value, "__iter__")]
        for f in iterfeats:
            nulls = pd.isnull(frame[f.get_name()])
            for ni in nulls[nulls].index:
                frame.at[ni, f.get_name()] = f.default_value

        // 2. handle scalars default values
        fillna_dict = {f.get_name(): f.default_value for f in features
                       if f not in iterfeats}
        frame.fillna(fillna_dict, inplace=True)

After Change


        fillna_dict = {}
        for f in features:
            feature_defaults = {name: f.default_value
                                for name in f.get_feature_names()}
            fillna_dict.update(feature_defaults)

        frame.fillna(fillna_dict, inplace=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: PandasBackend
Method Name: _calculate_agg_features


Project Name: Featuretools/featuretools
Commit Name: 5e929e2d41b6cf2bd8c9fcab7361f5bf37de7a9d
Time: 2020-09-04
Author: roy.wedge@alteryx.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