Skip to content

Instantly share code, notes, and snippets.

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