title: How to sample pandas DataFrame with replacement?
body: <p>I have a DataFrame, size N. I need to sample it with S samples, with replacement where N &lt; S.</p>
  
  <pre><code>def sampleDF(df, K): 
      return df.ix[np.random.randint(0, len(df), size=k)]
  </code></pre>
  
  <p>I return a new DF but it seems everything is filled with NaN. Am not sure what's going on! </p>