Skip to content Skip to sidebar Skip to footer

Pandas Dataframe, Join Two Dt When Columns Are Not Equal

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 'right'. How can

Solution 1:

Think you need this:

left[left.One.values != right.One.values]

# One   Two
#1  1     2
#3  2     5

Post a Comment for "Pandas Dataframe, Join Two Dt When Columns Are Not Equal"