candle.data_utils.discretize_dataframe#
- candle.data_utils.discretize_dataframe(df, col, bins=2, cutoffs=None)#
Discretize values of given column in pandas dataframe.
- Parameters:
- Returns:
Returns the data frame with the values of the specified column binned, i.e. the values
are replaced by the associated bin number.