How to bin Colour values (categorical- high cardinality) to primary colours?
Since there are small, finite number of color options, it would be straightforward to manually create a dictionary where the key is the primary color and values are a set of other color values.
In Python, it would be something like:
colors = {&quot;blue&quot;: {&quot;blue&quot;, &quot;teal&quot;},
          &quot;green&quot;: {&quot;green&quot;, &quot;olive&quot;},
         }