def _index_to_ticklabels(index):
    if isinstance(index, pd.MultiIndex):
        return ["-".join(map(str, i)) for i in index.values]
    else:
        return index.values
Convert a pandas index or multiindex into ticklabels.
dataset/ETHPy150Open mwaskom/seaborn/seaborn/matrix.py/_index_to_ticklabels