0
column1 column2
1 1
1 0
1 0
0 0

Now I want to calculate the hash or sparse vector of all the values in column1 and column2

1 Answers1

0

You can use VectorAssembler. It creates SparseVector by default.

pltc
  • 5,836
  • 1
  • 13
  • 31