[SPARK-9198] [MLLIB] [PYTHON] Fixed typo in pyspark sparsevector doc tests
[SPARK-9198] [MLLIB] [PYTHON] Fixed typo in pyspark sparsevector doc tests

Several places in the PySpark SparseVector docs have one defined as:
```
SparseVector(4, [2, 4], [1.0, 2.0])
```
The index 4 goes out of bounds (but this is not checked).

CC: mengxr

Author: Joseph K. Bradley <joseph@databricks.com>

Closes #7541 from jkbradley/sparsevec-doc-typo-fix and squashes the following commits:

c806a65 [Joseph K. Bradley] fixed doc test
e2dcb23 [Joseph K. Bradley] Fixed typo in pyspark sparsevector doc tests

(cherry picked from commit a5d05819afcc9b19aeae4817d842205f32b34335)
Signed-off-by: Xiangrui Meng <9616cf314f60cbadfd3d5d51110130ad7923defb@databricks.com>

andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap