Github user WeichenXu123 commented on a diff in the pull request:
https://github.com/apache/spark/pull/17968#discussion_r143656736
--- Diff: python/pyspark/ml/linalg/__init__.py ---
@@ -976,14 +976,20 @@ def __getitem__(self, indices):
return self.values[i + j * self.numRows]
def __eq__(self, other):
+ def _eq(self, other):
--- End diff --
Now `_eq` won't be called in multiple places, we can remove the `_eq`
definition, make code simpler.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]