Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Created May 25, 2020 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeerajBhadani/e4f00a71de79500c56ba2d893d2dc5dd to your computer and use it in GitHub Desktop.
Save NeerajBhadani/e4f00a71de79500c56ba2d893d2dc5dd to your computer and use it in GitHub Desktop.
Apply custom window Specification
val range_between_df = empsalary.withColumn("max_salary", max("salary").over(winSpec))
range_between_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment