title: How to convert DenseMatrix to spark DataFrame in pyspark?
body: <p>I didn't find any pyspark code to convert matrix to spark dataframe except the following example using Scala. Does anyone know how to use python instead?</p>
  
  <p><a href="https://stackoverflow.com/questions/48977151/how-to-convert-a-mllib-matrix-to-a-spark-dataframe">How to convert a mllib matrix to a spark dataframe?</a></p>