Difference between two DataFrames columns in pyspark

前端 未结 1 1115
栀梦
栀梦 2021-02-03 12:01

I am looking for a way to find difference in values, in columns of two DataFrame. For example:

from pyspark.sql impo         


        
相关标签:
1条回答
  • 2021-02-03 12:51

    Use the subtract function

    df_a.select('id').subtract(df_b.select('id')).collect()
    
    0 讨论(0)
提交回复
热议问题