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)))