Press "Enter" to skip to content

Map vs MapValues in Spark

The Big Data in Real World team explain how a couple of Spark functions work:

In this post we will look at the differences between map and mapValues functions and when it is appropriate to use either one.

We have a small made up dataset with Day and temperature in Fahrenheit. Let’s use both map() and mapValues() to convert them to Celsius.

Click through to learn the difference between these two functions.