import pandas as pd
from itertools import product
column_names = ['Gender', 'Class', 'Price Bracket']
ranges = [list(range(2)), list(range(3)), list(range(10))]
multi_index = pd.MultiIndex.from_tuples(list(product(*ranges)), names=
    column_names)
survival_table = pd.Series(index=multi_index)
Syntactic sugar for creating a pandas series with a MultiIndex