diff options
author | Niranjan Padmanabhan <niranjan.padmanabhan@gmail.com> | 2017-01-04 15:07:29 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2017-01-04 15:07:29 +0000 |
commit | a1e40b1f5d651305bbd0ba05779263a44f607498 (patch) | |
tree | f70fcf889a0c6f366bc44f5d012ec7f3e91ffbcc /python/pyspark/ml/linalg | |
parent | 7a82505817d479007adff6424473063d2003fcc1 (diff) | |
download | spark-a1e40b1f5d651305bbd0ba05779263a44f607498.tar.gz spark-a1e40b1f5d651305bbd0ba05779263a44f607498.tar.bz2 spark-a1e40b1f5d651305bbd0ba05779263a44f607498.zip |
[MINOR][DOCS] Remove consecutive duplicated words/typo in Spark Repo
## What changes were proposed in this pull request?
There are many locations in the Spark repo where the same word occurs consecutively. Sometimes they are appropriately placed, but many times they are not. This PR removes the inappropriately duplicated words.
## How was this patch tested?
N/A since only docs or comments were updated.
Author: Niranjan Padmanabhan <niranjan.padmanabhan@gmail.com>
Closes #16455 from neurons/np.structure_streaming_doc.
Diffstat (limited to 'python/pyspark/ml/linalg')
-rw-r--r-- | python/pyspark/ml/linalg/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pyspark/ml/linalg/__init__.py b/python/pyspark/ml/linalg/__init__.py index 1705c156ce..b765343251 100644 --- a/python/pyspark/ml/linalg/__init__.py +++ b/python/pyspark/ml/linalg/__init__.py @@ -481,7 +481,7 @@ class SparseVector(Vector): >>> SparseVector(4, {1:1.0, 6:2.0}) Traceback (most recent call last): ... - AssertionError: Index 6 is out of the the size of vector with size=4 + AssertionError: Index 6 is out of the size of vector with size=4 >>> SparseVector(4, {-1:1.0}) Traceback (most recent call last): ... @@ -521,7 +521,7 @@ class SparseVector(Vector): if self.indices.size > 0: assert np.max(self.indices) < self.size, \ - "Index %d is out of the the size of vector with size=%d" \ + "Index %d is out of the size of vector with size=%d" \ % (np.max(self.indices), self.size) assert np.min(self.indices) >= 0, \ "Contains negative index %d" % (np.min(self.indices)) |