Plt.hist working

how does plt.hist work? I mean we pass only one parameter x.
See in the video data generation regression

Jusy read the definition of histogram from this link : https://en.m.wikipedia.org/wiki/Histogram

and working of plt.hist from : https://matplotlib.org/api/_as_gen/matplotlib.pyplot.hist.html

your doubt will be cleared