Description
Parameter drops allows to return a vector/data.frame accordingly if the result of subsetting a data.frame has one single column (see example below). The same behavior is needed on a DataFrame.
> head(iris[, 1, drop=F])
Sepal.Length
1 5.1
2 4.9
3 4.7
4 4.6
5 5.0
6 5.4
> head(iris[, 1, drop=T])
[1] 5.1 4.9 4.7 4.6 5.0 5.4
Attachments
Issue Links
- is duplicated by
-
SPARK-10894 Add 'drop' support for DataFrame's subset function
-
- Resolved
-
- links to