title: How do I create test and train samples from one dataframe with pandas?
body: <p>I have a fairly large dataset in the form of a dataframe and I was wondering how I would be able to split the dataframe into two random samples (80% and 20%) for training and testing.</p>
  
  <p>Thanks!</p>