If a split is made of a single value, the KDE and HIST plots don't work (they expect a distribution with >1 different value.
This sometimes happens with image brightness if the image was normalized to the same value throughout the dataset.
To still show results in that specific case, we will now show a barplot when either of the split is made of a single value (i.e. when it cannot be shown as KDE or HIST).
Note that this is an edge case that should not be common at all.
If a split is made of a single value, the KDE and HIST plots don't work (they expect a distribution with >1 different value. This sometimes happens with image brightness if the image was normalized to the same value throughout the dataset.
To still show results in that specific case, we will now show a barplot when either of the split is made of a single value (i.e. when it cannot be shown as KDE or HIST).
Note that this is an edge case that should not be common at all.
Example