title: Attribute error: 'numpy.ndarray' object has no attribute 'value_counts'
body: <p>I am getting the following attribute error when I tried to rebalance the biased data:</p>
  <pre class="lang-none prettyprint-override"><code>'numpy.ndarray' object has no attribute 'value_counts'; 
  </code></pre>
  <p>it seems that the line <code>y.value_counts()</code> gives the attribute error</p>
  <p><strong>code:</strong></p>
  <pre><code>X = df.drop(columns=['type', 'quality'])
  y = df['quality']
  
  from imblearn.over_sampling import SMOTE
  
  oversample = SMOTE(k_neighbors=5)
  X, y = oversample.fit_resample(X,y)
  
  y.value_counts()
  </code></pre>