e85cb30e6adb96462791fb07c084c87ac8f69c9f,pdpipe/col_generation.py,OneHotEncode,_fit_transform,#OneHotEncode#Any#Any#,242

Before Change


        return set(self._columns or []).issubset(df.columns)

    def _fit_transform(self, df, verbose):
        columns_to_encode = self._columns
        if self._columns is None:
            columns_to_encode = list(
                set(
                    df.select_dtypes(include=["object", "category"]).columns
                ).difference(self._exclude_columns)
            )
        if self._col_subset:
            columns_to_encode = [
                x for x in columns_to_encode if x in df.columns
            ]

After Change


        raise NotImplementedError

    def _fit_transform(self, df, verbose):
        columns_to_encode = self._get_columns(df, fit=True)
        self._cols_to_encode = columns_to_encode
        assign_map = {}
        if verbose:
            columns_to_encode = tqdm.tqdm(columns_to_encode)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: shaypal5/pdpipe
Commit Name: e85cb30e6adb96462791fb07c084c87ac8f69c9f
Time: 2020-02-09
Author: shaypal5@gmail.com
File Name: pdpipe/col_generation.py
Class Name: OneHotEncode
Method Name: _fit_transform


Project Name: shaypal5/pdpipe
Commit Name: da3630c4eccc04079e465256786f65d6d87e7b1f
Time: 2020-02-16
Author: shaypal5@gmail.com
File Name: pdpipe/col_generation.py
Class Name: Log
Method Name: _fit_transform


Project Name: shaypal5/pdpipe
Commit Name: e85cb30e6adb96462791fb07c084c87ac8f69c9f
Time: 2020-02-09
Author: shaypal5@gmail.com
File Name: pdpipe/col_generation.py
Class Name: OneHotEncode
Method Name: _fit_transform


Project Name: shaypal5/pdpipe
Commit Name: da3630c4eccc04079e465256786f65d6d87e7b1f
Time: 2020-02-16
Author: shaypal5@gmail.com
File Name: pdpipe/sklearn_stages.py
Class Name: Encode
Method Name: _fit_transform