Hi, I had a sparse matrix and I wanted to add the value of a particular row which is identified by a particular number.
from pyspark.mllib.linalg.distributed import CoordinateMatrix, MatrixEntry mat = CoordinateMatrix(all_scores_df.select('ID_1','ID_2','value').rdd.map(lambda row: MatrixEntry(*row))) This gives me the number or rows and columns. But I am not able to extract the values and it always reports back the error: AttributeError: 'NoneType' object has no attribute 'setCallSite' Thanks and Regards, Gourav Sengupta