1c7a87e96c4b6180e423586193c26e5ccd2f6bfd,sklearn_pandas/__init__.py,DataFrameMapper,transform,#DataFrameMapper#,117

Before Change


            if transformer is not None:
                fea = transformer.transform(self._get_col_subset(X, columns))
            else:
                fea = self._get_col_subset(X, columns)

            if hasattr(fea, "toarray"):
                // sparse arrays should be converted to regular arrays
                // for hstack.

After Change


                    for transformer in transformers:
                        extracted.append(self._handle_feature(transformer.transform(self._get_col_subset(X, columns))))
                else:
                    extracted.append(self._handle_feature(transformers.transform(self._get_col_subset(X, columns))))
            else:
                extracted.append(self._handle_feature(self._get_col_subset(X, columns)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: 1c7a87e96c4b6180e423586193c26e5ccd2f6bfd
Time: 2015-08-02
Author: mahmoud@thehumangeo.com
File Name: sklearn_pandas/__init__.py
Class Name: DataFrameMapper
Method Name: transform


Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: 1c7a87e96c4b6180e423586193c26e5ccd2f6bfd
Time: 2015-08-02
Author: mahmoud@thehumangeo.com
File Name: sklearn_pandas/__init__.py
Class Name: DataFrameMapper
Method Name: transform


Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: c2f5f89fe49a53b44e8af326d908bd5142f7dd86
Time: 2017-09-03
Author: dukebody@gmail.com
File Name: sklearn_pandas/dataframe_mapper.py
Class Name: DataFrameMapper
Method Name: fit