Transformation is a function that produces new RDD from the existing RDDs. It takes RDD as input and produces output as one or more RDD.