def get_levels(self, columns):
        if self.columns is not None:
            levels = [columns.index(col) for col in self.columns]
            return levels
        else:
            return []
Provides a list of levels the attribute represents.
dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/attributes.py/CatAttr.get_levels