pandas / 0.22.0 / generated / pandas.multiindex.union.html /

pandas.MultiIndex.union

MultiIndex.union(other) [source]

Form the union of two MultiIndex objects, sorting if possible

Parameters:

other : MultiIndex or array / Index of tuples

Returns:

Index

>>> index.union(index2)

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.22.0/generated/pandas.MultiIndex.union.html