I have the following two-index (id and year) dataframe:
mux = pd.MultiIndex.from_arrays([[0,0,0,0,0,1,1,1,1,2,2,2,2,2,2], [1990,1991,1992,1993,1994,1991,1992,