Following up on this answer How to keep only a certain set of rows by index in a pandas DataFrame I need to extend it a bit:
E. g. I only want to keep rows where it\'