Skip to content

Commit b77e420

Browse files
author
Vinod K C
committed
Fixed review comment
1 parent b8e1e6e commit b77e420

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/pyspark/mllib/linalg/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ def __init__(self, ar):
266266
if ar.dtype != np.float64:
267267
ar = ar.astype(np.float64)
268268
self.array = ar
269-
self.values = ar
270269

271270
@staticmethod
272271
def parse(s):
@@ -392,6 +391,10 @@ def squared_distance(self, other):
392391
def toArray(self):
393392
return self.array
394393

394+
@property
395+
def values(self):
396+
return self.array
397+
395398
def __getitem__(self, item):
396399
return self.array[item]
397400

0 commit comments

Comments
 (0)