ranges = [list(range(2)), list(range(3)), list(range(10))]
multi_index = pd.MultiIndex.from_tuples(list(product(*ranges)), names=
    column_names)
Syntactic sugar for creating a pandas series with a MultiIndex