There's more...

Documentation for datatypes is available at http://spark.apache.org/docs/latest/sql-programming-guide.html.

If you are unsure as to what kind of data structure you have at hand (sometimes the difference is not obvious), use the getClass method to verify.

Spark 2.0 has transformed DataFrame into an alias for Dataset[Row]. While RDD and Dataram remain fully viable for near future, it is best to learn and code new projects using the dataset.

Get Apache Spark 2.x Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.