How to use sns.boxplot to draw a comparative boxplot of several fields in Python

You can use the sns.boxplot function, which creates boxplots that compare the distribution of data in several fields. Here is a sample code: import seaborn as sns import matplotlib.pyplot as pltdata = {'Field 1':[1,2,3,4,5],'Field 2':[2,3,4,5,6 ],'Field 3':[3,4,5,6,7]} sns.boxplot(data=data) plt.show()

Guess you like

Origin blog.csdn.net/weixin_42577735/article/details/129607038