| 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
| 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
Copyright © 2021 Jogjafile Inc.
You can use
VectorAssembler. It createsSparseVectorby default.