indicates the number of intervals or bins. And the labels parameter indicates the labels for the intervals.
We are also using the value_counts() function to print the number of values in each interval after the equal frequency discretization. The output of the above program will be:
low 17996 high 17980 medium 17964 Name: price, dtype: int64
As we can see each of the intervals has an almost equal number of values.








































0 Comments