Skip to content

Commit 31714cc

Browse files
committed
Return a numpy array when selecting a single column.
1 parent c374c98 commit 31714cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn_pandas/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _get_col_subset(self, X, cols):
9595
X = X.df
9696

9797
if return_vector:
98-
t = X[cols[0]]
98+
t = X[cols[0]].values
9999
else:
100100
t = X.as_matrix(cols)
101101

0 commit comments

Comments
 (0)