Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// create an array column with few values to explode.
val temp_df = df.withColumn("slice_col", slice($"array_col2", 1, 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment