left.merge(right, on='key', how='outer', indicator=True)\ .query('_merge != "both"')\ .drop(columns=['_merge'])