SparseMatrix — PySpark In-Progress documentation
-
class pyspark.ml.linalg.SparseMatrix(numRows, numCols, colPtrs, rowIndices, values, isTransposed=False)[source]#
Sparse Matrix stored in CSC format.
Methods
Methods Documentation
-
toArray()[source]#
Return a numpy.ndarray
-
toDense()[source]#