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

Before Change


                    to_agg[variable_id] = []
                func = f.get_function()
                // make sure function names are unique
                random_id = str(uuid.uuid1())
                func = wrap_func_with_name(func, random_id)
                funcname = random_id
                to_agg[variable_id].append(func)
                agg_rename[u"{}-{}".format(variable_id, funcname)] = \

After Change


            to_merge = base_frame.groupby(base_frame[groupby_var],
                                          observed=True, sort=False).agg(to_agg)
            // rename columns to the correct feature names
            to_merge.columns = [agg_rename["-".join(x)] for x in to_merge.columns.ravel()]

            frame = pd.merge(left=frame, right=to_merge[list(agg_rename.values())],
                             left_index=True, right_index=True, how="left")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Featuretools/featuretools
Commit Name: 846204634a089f1b29c4284ffbda11bbfa9a8ecb
Time: 2018-08-24
Author: kmax12@gmail.com
File Name: featuretools/computational_backends/pandas_backend.py
Class Name: PandasBackend
Method Name: _calculate_agg_features


Project Name: ijmarshall/robotreviewer
Commit Name: 7f3c44d98cb51df57f15acc77254e0bbc44cac3b
Time: 2016-08-12
Author: mail@ijmarshall.com
File Name: robotreviewer/robots/pico_robot.py
Class Name: PICORobot
Method Name: get_marginalia


Project Name: ijmarshall/robotreviewer
Commit Name: 2c28d00e8058043910efca8da0fa25c5a4c9cb15
Time: 2016-08-12
Author: mail@ijmarshall.com
File Name: robotreviewer/robots/pico_robot.py
Class Name: PICORobot
Method Name: get_marginalia