code: def sample(self, num_rows):
          
  
          sampled_values = []
          for i in range(num_rows):
              sampled_values.append(self._sample_row())
  
          return pd.DataFrame(sampled_values, columns=self.columns)
docs: Sample new rows.
  
          Args:
              num_rows(int): Number of rows to sample
  
          Returns:
              pandas.DataFrame