0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag
df.withColumn("rank", rank().over(Window.partitionBy("Dept_id").orderBy($"salary".desc))) .filter($"rank" <= 3) .drop("rank")
First / Previous / Next / Last
/ Page 1 of 0