We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d28a644 commit a1898eeCopy full SHA for a1898ee
python/pyspark/mllib/linalg/__init__.py
@@ -770,7 +770,7 @@ def __getitem__(self, index):
770
raise ValueError("Index %d out of bounds." % index)
771
772
insert_index = np.searchsorted(inds, index)
773
- if insert_index >= self.indices.size:
+ if insert_index >= inds.size:
774
return 0.
775
776
row_ind = inds[insert_index]
0 commit comments