Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Created May 25, 2020 15:22
Show Gist options
  • Save NeerajBhadani/5573f4a10982b99125822f3dbc568cc7 to your computer and use it in GitHub Desktop.
Save NeerajBhadani/5573f4a10982b99125822f3dbc568cc7 to your computer and use it in GitHub Desktop.
Apply custom window Specification
val rows_between_df = empsalary.withColumn("max_salary", max("salary").over(winSpec))
rows_between_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment