change values of structure dataframe
问题 I want to fill field structure from another existing structure A11 of my data1 will get the value of x1.f2 . I tried different manner and I didn't succeed. Please, who have an idea?. schema = StructType( [ StructField('data1', StructType([ StructField('A1', StructType([ StructField('A11', StringType(),True), StructField('A12', IntegerType(),True) ]) ), StructField('A2', IntegerType(),True) ]) )]) df = sqlCtx.createDataFrame([],schema) #Creation of df1 schema1 = StructType( [ StructField('x1',