f80b5ae1f55a979e24fd8afcea2c1fab280b0c70,featuretools/computational_backends/pandas_backend.py,PandasBackend,_calculate_direct_features,#PandasBackend#Any#Any#,320

Before Change


            // so we make sure not to attempt to calculate again
            if f.get_name() in child_df.columns:
                continue
            col_map[f.base_features[0].get_name()] = f.get_name()

        // merge the identity feature from the parent entity into the child
        merge_df = parent_df[list(col_map.keys())].rename(columns=col_map)
        if index_as_feature is not None:

After Change


            // that would ordinarily get calculated as direct features,
            // so we make sure not to attempt to calculate again
            base_names = f.base_features[0].get_feature_names()
            for name, base_name in zip(f.get_feature_names(), base_names):
                if name in child_df.columns:
                    continue
                col_map[base_name] = name

        // merge the identity feature from the parent entity into the child
        merge_df = parent_df[list(col_map.keys())].rename(columns=col_map)
        if index_as_feature is not None:
            merge_df.set_index(index_as_feature.get_name(), inplace=True,
                               drop=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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_direct_features


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: Featuretools/featuretools
Commit Name: a725cacb4bfc27554d5012f317f516d2b71dbc55
Time: 2019-10-29
Author: 4307001+thehomebrewnerd@users.noreply.github.com
File Name: featuretools/computational_backends/feature_set_calculator.py
Class Name: FeatureSetCalculator
Method Name: _calculate_groupby_features