Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Created May 25, 2020 10:13
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/161c54acae0f96fa5ef238831966de6a to your computer and use it in GitHub Desktop.
Save NeerajBhadani/161c54acae0f96fa5ef238831966de6a to your computer and use it in GitHub Desktop.
reverse
val arr_reverse_df = df.withColumn("result", reverse($"array_col2"))
arr_reverse_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment