This tutorial will explain with examples how to use array_sort and array_join array functions in Pyspark.

PySpark: Dataframe Array Functions Part 1

This tutorial will explain with examples how to use array_sort and array_join array functions in Pyspark. Other array functions can be viewed by clicking functions in the below list.




array_sort: This function can be used to sort elements of array column in ascending order, Null/None elements will be placed at the end of the returned array. It is available to import from Pyspark Sql function library.


array_join: This function can be used to concatenate elements of array column using a string delimiter. It is available to import from Pyspark Sql function library.