title: Sci-Kit learn KBinsDicretizer produces different shape
body: <p>I require equal width discretization of the attributes to the dataset and then continue with plotting values dataset discretized vs continous. for that I need complete discrete valued dataset and not a sparse matrix</p>
  
  <pre><code>X,y = datasets[0]
  enc = KBinsDiscretizer(n_bins=5 )
  X_binned = enc.fit_transform(X)
  print(pd.DataFrame.sparse.from_spmatrix(X_binned).shape)
  print(X.shape)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>(100, 10)
  (100, 2)
  </code></pre>
  
  <p>Thank you</p>