# scipy.stats.histogram¶

scipy.stats.histogram(a, numbins=10, defaultlimits=None, weights=None, printextras=False)

Separates the range into several bins and returns the number of instances of a in each bin. This histogram is based on numpy’s histogram but has a larger range by default if default limits is not set.

Parameters : a: array_like : Array of scores which will be put into bins. numbins: int, optional : The number of bins to use for the histogram. Default is 10. defaultlimits: tuple (lower, upper), optional : The lower and upper values for the range of the histogram. If no value is given, a range slightly larger then the range of the values in a is used. Specifically (a.min() - s, a.max() + s), where s = (1/2)(a.max() - a.min()) / (numbins - 1). weights: array_like, optional : The weights for each value in a. Default is None, which gives each value a weight of 1.0 printextras: bool, optional : If True, the number of extra points is printed to standard output. Default is False. histogram: ndarray : Number of points (or sum of weights) in each bin. low_range: float : Lowest value of histogram, the lower limit of the first bin. binsize: float : The size of the bins (all bins have the same size). extrapoints: int : The number of points outside the range of the histogram.
{"ft_lang_label":"__label__en","ft_lang_prob":0.58294815,"math_prob":0.9749406,"size":465,"snap":"2021-31-2021-39","text_gpt3_token_len":109,"char_repetition_ratio":0.14316703,"word_repetition_ratio":0.0,"special_character_ratio":0.2451613,"punctuation_ratio":0.29032257,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9907806,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-25T20:03:34Z\",\"WARC-Record-ID\":\"<urn:uuid:cb278306-fe1f-4adc-9368-cd3ca3c1daeb>\",\"Content-Length\":\"11576\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e814a1c5-f2cc-487b-86aa-766d3c3dbbaa>\",\"WARC-Concurrent-To\":\"<urn:uuid:7c23f730-ea77-4f3b-8174-0a0fb136c3ee>\",\"WARC-IP-Address\":\"50.17.248.72\",\"WARC-Target-URI\":\"https://docs.scipy.org/doc/scipy-0.10.1/reference/generated/scipy.stats.histogram.html\",\"WARC-Payload-Digest\":\"sha1:FE6M52S4DGHQC2JR3MT5CTFFSX56GFUI\",\"WARC-Block-Digest\":\"sha1:KYVHS6D5EWKXYNUNQGBBYOIVLGYEJ67B\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046151760.94_warc_CC-MAIN-20210725174608-20210725204608-00311.warc.gz\"}"}