Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Last active May 25, 2020 09:57
Show Gist options
  • Save NeerajBhadani/e6cc06128dae13c3e844aca79e676415 to your computer and use it in GitHub Desktop.
Save NeerajBhadani/e6cc06128dae13c3e844aca79e676415 to your computer and use it in GitHub Desktop.
array_min
val arr_min_df = df.withColumn("result", array_min($"array_col2"))
arr_min_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment