title: resample() in python error
body: <p>I am picking up Python....trying to use resample and getting below error
  referring <a href="https://elitedatascience.com/imbalanced-classes" rel="nofollow noreferrer">https://elitedatascience.com/imbalanced-classes</a></p>
  
  <pre><code>from sklearn.utils import resample
  
  df_majority = df[df.balance==0]
  df_minority = df[df.balance==1]
  #Upsample minority class
  df_minority_upsampled = resample(df_minority, 
                                   replace=True,     # sample with replacement
                                   n_samples=576,    # to match majority class
                                   random_state=123) # reproducible results
  =================
  Error:
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 5, in &lt;module&gt;
    File "C:\Anaconda3\lib\site-packages\sklearn\utils\__init__.py", line 253, in resample
      max_n_samples, n_samples))
  ValueError: Cannot sample 576 out of arrays with dim 49
  </code></pre>
  
  <p>Appreciate any help...pointers..
  Thank you</p>
  
  <p>P.S: I am using Zeppelin notebook to try these out.</p>