I have the following table:
Note: Both NSRCODE and PBL_AWI are index\'s
Note: the % Of area column would be filled out just have not done so yet.
<
Another (maybe cleaner) way might be this one:
print(df[df.index.isin(['Lake', 'River', 'Upland'], level=1)])
The parameter level specifies the index number (starting with 0) or index name (here: level='PBL_AWI')
level
level='PBL_AWI'