title: Extracting results from gridsearchcv
body: <p>I just finished a gridsearch CV on tree based modelling and after looking into the results, I managed to access the results of each iteration from gridsearchCV.</p>
  
  <p>I need each run into a separate row and each parameter in a separate column.
  I can run a loop or list comprehension to run for each row but unable to separate each run into columns</p>
  
  <pre><code> df = grid.grid_scores_
   df[0]
   mean: 0.57114, std: 0.00907, params: {'criterion': 'gini', 'max_depth': 10, 
   'max_features': 8, 'min_samples_leaf': 2, 'min_samples_split': 2, 'splitter': 'best'}`
  </code></pre>
  
  <p>I tried with tuple and dict accesories but ended up in errors. Essentially I need every parameter in a new column like below.</p>
  
  <pre><code>mean | std   | criterion | ..... | splitter
  0.57   0.009    'gini'     ..... | 'best'
  0.58   0.029    'entropy'     ..... | 'random'
  .
  .
  .
  .
  </code></pre>