# It's a good idea to get an idea of the distribution of the target variable. # Here we're using matplotlib's histogram function. # Remember to set bins to auto, otherwise it's using 10 bins # the histogram is somewhat skewed to the left, though not extremely # and has a maximum around somewhere around 90 import matplotlib.pyplot as plt y.hist(bins='auto')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter