Skip to content

Commit

Permalink
fixing dataframe map to rdd.map
Browse files Browse the repository at this point in the history
  • Loading branch information
sethah committed Mar 8, 2016
1 parent 1a486f8 commit 1c9b9cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class OneHotEncoderSuite
.setDropLast(false)
val encoded = encoder.transform(dfWithTypes)

val output = encoded.select("id", "labelVec").map { r =>
val output = encoded.select("id", "labelVec").rdd.map { r =>
val vec = r.getAs[Vector](1)
(r.getInt(0), vec(0), vec(1), vec(2))
}.collect().toSet
Expand Down

0 comments on commit 1c9b9cd

Please sign in to comment.