I am new to Bokeh from physics field.
I wonder if there is a build-in way to generate a histogram with fixed or various binning.
For example, I have df[‘x’] in Gaussian distribution.
hist = Histogram(data=df, values=‘x’, bins=30, continuous_range=Range1d(0, 2))
But the range is not set to [0,2].
For various reasons, I don’t want to trim my df, like df[df.x>0 & df.x<2].
Another question is, can I use various binning, such as [0, 0.1, 0.3, 0.5, 1.0, 2.0] to generate the histogram?
Sorry if this is already documented somewhere, I couldn’t find an example anywhere.