Github user davies commented on a diff in the pull request: https://github.com/apache/spark/pull/6342#discussion_r30942075 --- Diff: python/pyspark/mllib/linalg.py --- @@ -897,6 +914,33 @@ def __init__(self, numRows, numCols, colPtrs, rowIndices, values, raise ValueError("Expected rowIndices of length %d, got %d." % (self.rowIndices.size, self.values.size)) + def __str__(self): --- End diff -- Could you add a doc test for `__str__`, it's easy to see the result in doc test.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org