figure - visualizing relationships between wine typesqualitysulfur dioxideand acidity levels we can easily interpret from figure - that volatile acidity as well as total sulfur dioxide is considerably lower in high quality wine samples alsototal sulfur dioxide is considerable more in white wine samples as compared to red wine samples howevervolatile acidity levels are slightly lower in white wine samples as compared to red wine samples we also observed in the previous plot nice way to visualize numerical features segmented by groups (categorical variablesis to use box plots in our datasetwe have already discussed the relationship of higher alcohol levels with higher quality ratings for wine samples in the "inferential statisticssection let' try to visualize the relationship between wine alcohol levels grouped by wine quality ratings we will generate two plots for wine alcohol content versus both wine quality and quality_label (ax ax plt subplots( figsize=( ) suptitle('wine type quality alcohol content'fontsize= sns boxplot( ="quality" ="alcohol"hue="wine_type"data=winespalette={"red""#ff ""white""white"}ax=ax ax set_xlabel("wine quality",size ,alpha= ax set_ylabel("wine alcohol %",size ,alpha= sns boxplot( ="quality_label" ="alcohol"hue="wine_type"data=winespalette={"red""#ff ""white""white"}ax=ax ax set_xlabel("wine quality class",size ,alpha= ax set_ylabel("wine alcohol %",size ,alpha= plt legend(loc='best'title='wine type'