product_multiindex#
- caf.base.segmentation.product_multiindex(multi_index1, multi_index2)[source]#
Take two MultiIndex objects and return their Cartesian product as a new MultiIndex.
- Parameters:
multi_index1 (pd.MultiIndex) – The first MultiIndex.
multi_index2 (pd.MultiIndex) – The second MultiIndex.
- Returns:
pd.MultiIndex
- Return type:
A new MultiIndex which is the Cartesian product of the two input MultiIndices.