Github user holdenk commented on a diff in the pull request: https://github.com/apache/spark/pull/9441#discussion_r43829680 --- Diff: python/pyspark/mllib/linalg/distributed.py --- @@ -500,6 +661,25 @@ def numCols(self): """ return self._java_matrix_wrapper.call("numCols") + def transpose(self): + """ + Transpose this CoordinateMatrix. + + >>> entries = sc.parallelize([MatrixEntry(0, 0, 1.2), + ... MatrixEntry(1, 0, 2), + ... MatrixEntry(2, 1, 3.7)]) + >>> mat = CoordinateMatrix(entries) + >>> mat_transposed = mat.transpose() + --- End diff -- Is this blank line intentional?
--- 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