If you want to bin your Dataframe’s values into discrete intervals, use pd.cut.
The image above shows an example of this method.
Link to the source code.