title: Panda.qcut inside logic of binning
body: <p>I am experimenting with different methods of binning a continuous variable. two methods that I used - qcut and entropy_based_binning method bin_sequence. For testing I created a data with 100 values. I made the data skewed by putting value = 1 for first 50 records, 2 for next few records, 5, 12 for few records and then randomly few numbers.</p>
  <p>When I tried to run it with number of bins = 6 it created only 3 bins with qcut method. from pandas documentation it is not clear how it behaves with skewed data. Also, there is very limited information available on entropy based binning. Would appreciate if someone can share details. Pros and cons of each method</p>
  <p>age
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  2
  12
  12
  12
  12
  12
  12
  12
  12
  12
  5
  5
  5
  5
  5
  5
  5
  5
  20
  20
  20
  20
  20
  20
  20
  25
  26
  27
  93
  50
  54</p>