concept dataframe api in category spark

appears as: dataframe API
Spark in Action, Second Edition

This is an excerpt from Manning's book Spark in Action, Second Edition.

Transformations are operations you perform on data, such as extracting a year from a date, combining two fields, normalizing data, and so on. In this chapter, you’ll learn how to use dataframe-specific functions to perform transformations, as well as methods directly attached to the dataframe API. You will merge two dataframes into one by using a SQL union-like operation. You’ll also see the difference between a dataset and a dataframe, and how to go from one to the other.

In the previous section, you learned what a UDF is. Now, let’s go through a typical use case involving code. In this section, I describe the problem to solve and show the data. Then you’ll use a UDF to implement the solution. To do that, you register the UDF, use it via the dataframe API, use it via Spark SQL, implement the UDF, and write the service code.