How to do it...

The following list outlines common Apache Spark RDD transformations and code snippets. A more complete list can be found in the Apache Spark documentation, RDD Programing Guide | Transformations, at https://spark.apache.org/docs/latest/rdd-programming-guide.html#transformations, the PySpark RDD API at https://spark.apache.org/docs/latest/api/python/pyspark.html#pyspark.RDD, and Essential Core and Intermediate Spark Operations at https://training.databricks.com/visualapi.pdf.