code: def _make_index(df, cols=META_IDX):
      
      return pd.MultiIndex.from_tuples(
          pd.unique(list(zip(*[df[col] for col in cols]))), names=tuple(cols))
docs: Create an index from the columns of a dataframe