Spark 3.5 added new array helper functions that simplify the process of working with array data. Above are a few examples showcasing these new array functions.
View other array functions.
Make PySpark Queries Cleaner with Column Aliasing
Update Multiple Columns in Spark 3.3 and Later
Use PySpark UDFs to Make SQL Logic Reusable