I'm not sure about this, but do you think that if we restrict n > 0, and the table doesn't have any null row/col to begin with, it may suffice to filter the opposite axis?