I have a large set of data: for about 10 asset classes, the interest rate for each year for around a hundred years. I had been using a dictionary structure so that I could access the rate for the year like this:
rate = asset_class_1.get(year)
But defining it is cumbersome, and I would prefer to access the asset_class as part of a broader data structure -- so a 2D dictionary. Is there any better way?