Working in pandas, I have created a list of tuples representing a range of rows around a given set of index points:
mask = df.loc[df[\'Illustration\']==\'Exam