Pyspark - Sort dataframe column that contains list of list
https://stackoverflow.com/questions/43366073Sorted by: 1. I don't know what your tried, but check below solution this will work for you. from pyspark.sql.types import StructType, StructField, IntegerType, StringType, ArrayType from pyspark.sql.functions import udf dfSchema = StructType ( [StructField ('WindowID', IntegerType (), True), StructField ('State', StringType (), True
Pyspark - Sort dataframe column that contains list of list
stackoverflow.com › questions › 43366073Apr 12, 2017 · from pyspark.sql.types import StructType, StructField, IntegerType, StringType, ArrayType from pyspark.sql.functions import udf dfSchema = StructType ( [StructField ('WindowID', IntegerType (), True), StructField ('State', StringType (), True), StructField ('Details', ArrayType (ArrayType (IntegerType ())), True)]) # ["WindowID", "State", …