VectorSlicer is used to:
Select an answer to reveal the explanation.
Short Explanation and Infographic
VectorSlicer picks feature index subsets inside vector columns.
Full explanation below image
Full Explanation
Feature selection stage in Spark ML.