'Is there a simple way to filter out items that don't share a common item between columns?

I have two datasets that I merged together by date. These datasets had an Id column as well. This merge created Id.x and Id.y. My question is how to filter out any rows where Id.x and Id.y don't equal one another.

Is there a simple way to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source