rows_for_rules function

Check which rows in the data violated the rules