I have the following dataframe:
df1 = pd.DataFrame(np.random.randint(80, 120, size=(4,2)),
index=pd.MultiIndex.from_product([['English', 'Japanese'], ['like', 'dislike']]),
columns=['girl', 'boy']
)
print(df1)
How can I access just the English rows? This does not work:
print(df1.English) # there I get error: AttributeError: 'DataFrame' object has no attribute 'English'