from the above outputthe difference between density plots and histograms can be easily understood box and whisker plots box and whisker plotsalso called boxplots in shortis another useful technique to review the distribution of each attribute' distribution the following are the characteristics of this techniqueit is univariate in nature and summarizes the distribution of each attribute it draws line for the middle value for median it draws box around the and it also draws whiskers which will give us an idea about the spread of the data the dots outside the whiskers signifies the outlier values outlier values would be times greater than the size of the spread of the middle data example in the following examplepython script will generate density plots for the distribution of attributes of pima indian diabetes dataset from matplotlib import pyplot from pandas import read_csv path " :\pima-indians-diabetes csvnames ['preg''plas''pres''skin''test''mass''pedi''age''class'data read_csv(pathnames=namesdata plot(kind='box'subplots=truelayout=( , )sharex=false,sharey=falsepyplot show(