title: map vs mapValues in Spark
body: <p>I'm currently learning Spark and developing custom machine learning algorithms. My question is what is the difference between <code>.map()</code> and <code>.mapValues()</code> and what are cases where I clearly have to use one instead of the other?</p>