getCandidates() works for rows and columns