PySpark: match the values of a DataFrame column against another DataFrame column

前端 未结 1 1069
离开以前
离开以前 2020-12-06 02:16

In Pandas DataFrame, I can use DataFrame.isin() function to match the column values against another column.

For example: suppose we have one DataFrame:

1条回答
  •  感情败类
    2020-12-06 02:40

    This kind of operation is called left semi join in spark:

    df_B.join(df_A, ['col1'], 'leftsemi')
    

    0 讨论(0)
提交回复
热议问题