I am trying to change continuous data points to categorical by using binning. I know two techniques, i) equal width bins ii) bins with equal number of elements. My questions are:
- Which type of binning is appropriate for which kind of problem?
- I use
pandasfor my data analysis task and it has
pd.cutmethod for arbitrary binning which I use for equal wdith bins and
pd.qcutmethod for bins with equal number of elements. The second function always produces very complicated bin boundaries (like, [(-28.004,795.8976],(795.8976,900.342]]). Is there any way to "control" the bin boundaries so that they look more meaningful to non-technical persons?
Thanks in advance.