title: Pandas random sample with remove
body: <p>I'm aware of <code>DataFrame.sample()</code>, but how can I do this and also remove the sample from the dataset? (<em>Note: AFAIK this has nothing to do with sampling with replacement</em>)</p>
  
  <p>For example here is <strong>the essence</strong> of what I want to achieve, this does not actually work:</p>
  
  <pre><code>len(df) # 1000
  
  df_subset = df.sample(300)
  len(df_subset) # 300
  
  df = df.remove(df_subset)
  len(df) # 700
  </code></pre>