How to define bin size in Python histogram?

how to define bin size in histogram?

Are you asking the definition of histogram bin_size?
Or how to specify bin_size for Python histogram plotting?

Please be more specific and detailed.

2 nd one how to specify bin_size for Python histogram plotting?

Please check the following:
Set bins to an Integer in matplotlib.pyplot.hist() to create bins of equal size