CategoricalIndex.union()

pandas.CategoricalIndex.union

CategoricalIndex.union(other) [source]

Form the union of two Index objects and sorts if possible.

Parameters: other : Index or array-like
Returns: union : Index

Examples

>>> idx1 = pd.Index([1, 2, 3, 4])
>>> idx2 = pd.Inde