index = pd.MultiIndex.from_tuples(tup, names=['f', 's'])
df = pd.DataFrame(np.random.randn(4, 4))
df
idx = [(i in [1, 3]) for i in range(len(df.index))]
idx
df.iloc[idx]
Trouble with using iloc in pandas dataframe with hierarchical index