I'm struggling to figure out how to remove rows from a pandas dataframe in which two specified columns have the same value across a row.
For example, in the below examples I would like to remove the rows which have duplicate values in the columns 2 and 4.
For example:
Column1 Column2 Column3 Column4
Pat 123 John 456
Pat 123 John 345
Jimmy 678 Mary 678
Larry 678 James 983
Would turn into:
Column1 Column2 Column3 Column4
Pat 123 John 456
Pat 123 John 345
Larry 678 James 983
Any help is appreciated, thank you!