Skip to content

Commit

Permalink
fixed doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbradley committed Jul 20, 2015
1 parent e2dcb23 commit c806a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/mllib/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ def squared_distance(self, other):
11.0
>>> b = SparseVector(4, [2], [1.0])
>>> a.squared_distance(b)
30.0
26.0
>>> b.squared_distance(a)
30.0
26.0
>>> b.squared_distance([1., 2.])
Traceback (most recent call last):
...
Expand Down

0 comments on commit c806a65

Please sign in to comment.