VectorAssembler's role in Spark ML is to:
Select an answer to reveal the explanation.
Short Explanation and Infographic
VectorAssembler glues columns into one features vector Spark ML estimators expect.
Full explanation below image
Full Explanation
Most Spark ML estimators expect a vector column; VectorAssembler builds it from numeric/feature columns.