// handle numpy named/ structured array
elif self.features_ is not None and is_structured_array(X):
X_selected = X[self.features_]
X_two_cols = X_selected.view((np.float64, len(X_selected.dtype.names)))
// handle features that are numeric columns in ndarray matrix
elif self.features_ is not None and has_ndarray_int_columns(self.features_, X):
f_one, f_two = self.features_
After Change
// handle numpy named/ structured array
elif self.features_ is not None and is_structured_array(X):
X_two_cols = np.array(X[self.features_].tolist())
// handle features that are numeric columns in ndarray matrix
elif self.features_ is not None and has_ndarray_int_columns(self.features_, X):
f_one, f_two = self.features_