from the shape of the binwe can easily observe the distribution weather it is gaussianskewed or exponential histograms also help us to see possible outliers example the code shown below is an example of python script creating the histogram of the attributes of pima indian diabetes dataset herewe will be using hist(function on pandas dataframe to generate histograms and matplotlib for ploting them 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 hist(pyplot show(output