Finding in-common and not-in-common things

When performing data analysis, sometimes it is important to understand which data shares common groups or attributes and, conversely, which data does not share common groups and attributes. This recipe provides techniques you can use to identify data that shares common groups and attributes (in-common) as well as data that does not share common groups and attributes (not-in-common).