To be clear, I'm using boolean indexing not just giving 'single_row'. Otherwise, I have to write another line to get the index value for 'single_row'.