Create a pandas Index from a mapping of {col_name: col_values}.
Useful for N-dimensional conversions as MultiIndex can change types
when only one index column is needed.
- Parameters:
dimension_cols (dict[str, list[Any]]) – A dictionary mapping {col_name: col_values}, where col_values
is a list of the unique values in a column.
- Returns:
A pandas index of evey combination of values in dimension_cols
- Return type:
index