Skip to content

Commit a1898ee

Browse files
committed
Use inds.size instead of self.indices.size
1 parent d28a644 commit a1898ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/mllib/linalg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ def __getitem__(self, index):
770770
raise ValueError("Index %d out of bounds." % index)
771771

772772
insert_index = np.searchsorted(inds, index)
773-
if insert_index >= self.indices.size:
773+
if insert_index >= inds.size:
774774
return 0.
775775

776776
row_ind = inds[insert_index]

0 commit comments

Comments
 (0)