Index.symmetric_difference()

pandas.Index.symmetric_difference

Index.symmetric_difference(other, result_name=None)

Compute the sorted symmetric difference of two Index objects.

Parameters:

other : Index or array-like

result_name : str

Returns:

symmetric_difference : Index

Notes

symmetric_difference contains elements that appear in either idx1 or idx2 but not both. Equivalent to the Index created by 登录查看完整内容