Python Forum
Need help with NumPy Histogram function coding
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with NumPy Histogram function coding
#2
Read the documentations.

https://numpy.org/doc/stable/reference/g...ogram.html

Of particular interest:

Quote:bins : int or sequence of scalars or str, optional
If bins is an int, it defines the number of equal-width bins in the given range (10, by default). If bins is a sequence, it defines a monotonically increasing array of bin edges, including the rightmost edge, allowing for non-uniform bin widths.
Quote:range(float, float), optional
The lower and upper range of the bins. If not provided, range is simply (a.min(), a.max()). Values outside the range are ignored. The first element of the range must be less than or equal to the second. range affects the automatic bin computation as well. While bin width is computed to be optimal based on the actual data within range, the bin count will fill the entire range including portions containing no data.
Reply


Messages In This Thread
RE: Need help with NumPy Histogram function coding - by deanhystad - May-15-2023, 01:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Plotting histogram of dataframe column Mark17 4 2,666 Jul-30-2020, 09:52 AM
Last Post: Mark17
  coding a function helpless_coder 7 2,765 Apr-30-2020, 03:31 AM
Last Post: deanhystad
  Can someone find out what kind of histogram is it? J_tin 1 1,813 Apr-26-2020, 05:23 PM
Last Post: buran
  typeerror, building histogram from data newatpython11 7 3,805 Jul-17-2019, 12:54 PM
Last Post: ichabod801
  Histogram using pandas dataframe not showing proper output ift38375 1 2,208 Jul-04-2019, 10:43 PM
Last Post: scidam
  Histogram and text file. pawlo392 1 4,149 May-24-2019, 03:14 AM
Last Post: heiner55
  New to Python - tiny coding assistance on user input function and assign to variable Mountain_Duck 1 2,528 Mar-23-2019, 06:54 PM
Last Post: Yoriz
  how do i use get for my histogram function? pseudo 4 4,840 Oct-14-2018, 04:23 AM
Last Post: stullis
  The where function in numpy saund1pe 5 6,262 Nov-16-2016, 08:04 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020