Skip to content

Instantly share code, notes, and snippets.

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