I have a multi-index Series defined like this:
s = pd.Series([1, 2, 3, 4, 5, 6], index=pd.MultiIndex.from_product([["A", "B"], ["c", "d", "e"]]))sA c 1 d 2 e 3B c 4 d 5 e 6dtype: int64I want to evaluate this series at two lists:
l1 = ['A', 'B', 'A']l2 = ['c', 'd', 'c']How can I do it pythonically without a for loop, e.g. without
[s.loc[x, y] for x, y in zip(l1, l2)]