title: TypeError: int() argument must be a string, a bytes-like object or a number, not 'DataFrame'
body: <p>I have dataframe and I need to make an assessment of the quality before using nearest neighbor method.
  I use <code>sklearn.cross_validation.KFold</code>, but I don't know, how can I give a dataframe to this function. </p>
  
  <pre><code>quality = KFold(df, n_folds=5, shuffle=True, random_state=42)
  </code></pre>
  
  <p>But it return</p>
  
  <pre><code>TypeError: int() argument must be a string, a bytes-like object or a number, not 'DataFrame'
  </code></pre>
  
  <p>How can I fix it?</p>