Dataframe, Datasets, Rdd.
greater than 24. See the output, it work fine. Let’s see how DataFrame reacts when applying lambda function on it. val empDataFrameResult = empDataFrame.filter(employ => employ.age > 24) Oops! we get an error, value is not a member of Row object. In the case of DataFrame when we apply lambda