Reputation: 1
Now I want to calculate the hash or sparse vector of all the values in column1 and column2
Upvotes: 0
Views: 512
Reputation: 6082
You can use VectorAssembler. It creates SparseVector by default.
VectorAssembler
SparseVector
Upvotes: -1