Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Created May 25, 2020 10:18
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/28c2287680d0472bb641ab5532b327d2 to your computer and use it in GitHub Desktop.
Save NeerajBhadani/28c2287680d0472bb641ab5532b327d2 to your computer and use it in GitHub Desktop.
explode
// explode the array column "slice_col"
val arr_explode_df = temp_df.withColumn("result", explode($"slice_col"))
arr_explode_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment