PySpark: dynamic union of DataFrames with different columns

后端 未结 3 907
臣服心动
臣服心动 2021-01-07 15:15

Consider the arrays as shown here. I have 3 sets of array:

Array 1:

C1  C2  C3
1   2   3
9   5   6

Array 2:

C2 C3 C         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-07 15:47

    I would try

    df = df1.join(df2, ['each', 'shared', 'col], how='full')
    

提交回复
热议问题