Given the below list, I'd like to fill in the 'Color Guess' column with the mode of the 'Color' column conditional on 'Type' and 'Size' and ignoring NULL, #N/A, etc.
For example, what's the most common color for SMALL CATS, what's the most common color for MEDIUM DOGS, etc.
Type Size Color Color Guess Cat small brown Dog small black Dog large black Cat medium white Cat medium #N/A Dog large brown Cat large white Cat large #N/A Dog large brown Dog medium #N/A Cat small #N/A Dog small white Dog small black Dog small brown Dog medium white Dog medium #N/A Cat large brown Dog small white Dog large #N/A