e476e21708edf24c1627764de1fef7be980ea514,pdpipe/col_generation.py,ColByFrameFunc,_transform,#ColByFrameFunc#Any#Any#,690

Before Change


        try:
            new_col = self._func(df)
        except Exception:
            raise PipelineApplicationError(
                "Exception raised applying function {} to "
                "dataframe by class {}.".format(
                    self._func_desc, self.__class__
                )
            )
        if self._follow_column:
            loc = df.columns.get_loc(self._follow_column) + 1
        else:
            loc = len(df.columns)

After Change


        try:
            new_col = self._func(df)
        except Exception:
            raise PipelineApplicationError(
                f"Exception raised applying function {self._func_desc} to "
                f"dataframe by class {self.__class__}."
            )
        if self._follow_column:
            loc = df.columns.get_loc(self._follow_column) + 1
        else:
            loc = len(df.columns)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: shaypal5/pdpipe
Commit Name: e476e21708edf24c1627764de1fef7be980ea514
Time: 2020-11-02
Author: 41651296+DavidKatz-il@users.noreply.github.com
File Name: pdpipe/col_generation.py
Class Name: ColByFrameFunc
Method Name: _transform


Project Name: shaypal5/pdpipe
Commit Name: e476e21708edf24c1627764de1fef7be980ea514
Time: 2020-11-02
Author: 41651296+DavidKatz-il@users.noreply.github.com
File Name: pdpipe/col_generation.py
Class Name: ColByFrameFunc
Method Name: _transform


Project Name: shaypal5/pdpipe
Commit Name: e476e21708edf24c1627764de1fef7be980ea514
Time: 2020-11-02
Author: 41651296+DavidKatz-il@users.noreply.github.com
File Name: pdpipe/sklearn_stages.py
Class Name: Scale
Method Name: _transform


Project Name: shaypal5/pdpipe
Commit Name: e476e21708edf24c1627764de1fef7be980ea514
Time: 2020-11-02
Author: 41651296+DavidKatz-il@users.noreply.github.com
File Name: pdpipe/sklearn_stages.py
Class Name: Scale
Method Name: _fit_transform