5.6.2.5. statsmodels.sandbox.infotheo.discretize

statsmodels.sandbox.infotheo.discretize(X, method='ef', nbins=None)[source]

Discretize X

Parameters:

bins : int, optional

Number of bins. Default is floor(sqrt(N))

method : string

“ef” is equal-frequency binning “ew” is equal-width binning