Pandas Dataframe, join two dt when columns are not equal

前端 未结 1 1586
鱼传尺愫
鱼传尺愫 2021-01-24 08:27

Assume I have two datatables, identical shape, say N rows and 2 columns. They have same columns names \"One\", \"Two\"

Call first table \"left\", then call second table

相关标签:
1条回答
  • 2021-01-24 09:11

    Think you need this:

    left[left.One.values != right.One.values]
    
    # One   Two
    #1  1     2
    #3  2     5
    
    0 讨论(0)
提交回复
热议问题