klotz: window*

Bookmarks on this page are managed by an admin user.

0 bookmark(s) - Sort by: Date ↑ / Title / - Bookmarks from other users for this tag

  1. val w = Window.partitionBy($"id")
    val df2 = df.withColumn("maxCharge", max("charge").over(w))
    .filter($"maxCharge" === $"charge")
    .drop("charge")
    .withColumnRenamed("maxCharge", "charge")
    2018-03-27 Tags: , , by klotz
  2. I confirm that when I do window functions on df2 partitioned by userid there is no shuffle! Thanks @user8371915!
    2018-03-27 Tags: , , by klotz
  3. df.withColumn("rank", rank().over(Window.partitionBy("Dept_id").orderBy($"salary".desc)))
    .filter($"rank" <= 3)
    .drop("rank")
    2019-06-24 Tags: , , , , , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: window

About - Propulsed by SemanticScuttle