How to convert CSV data into LabelledPoint format?
<p>In the example provided here <a href="http://spark.apache.org/docs/latest/mllib-clustering.html#streaming-k-means" rel="nofollow">http://spark.apache.org/docs/latest/mllib-clustering.html#streaming-k-means</a> the data is already in LabelledPoint format but I have a csv file with separate label and feature columns (and theyre both text). </p>