Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
slice
val arr_slice_df = df.withColumn("result", slice($"array_col2", 2, 3))
arr_slice_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment