Spark, Data Science, Tutorial, Machine Learning, Machine Intelligence.
.builder() .appName("test") .config("spark.master", "local") .getOrCreate(); var data = spark.read.format("csv"). option("header", true).load("/home/ashrith/data/test.csv").toDF(); data = data .withColumn("rn",row_number() .over(Window.orderBy("year"))).toDF(); data = data.filter(data("rn") >