Dataframe, Datasets, Rdd.
attributes name, age, id, and department. Now create sample employ data. val empData = Seq(Employ("A", 24, 132, "HR"), Employ("B", 26, 131, "Engineering"), Employ("C", 25, 135, "Data Science")) Let’s create a RDD from empData. val empRDD = spark.sparkContext.makeRDD(empData) Now, Let’s create