title: How do extract specific info in a timeit report for visualization in plt?
body: <p>How do I pick specific values from the result of running %%timeit? Struggling to find a way out in terms of visualizing loop times. Found an excellent youtube video, showing to significantly speeding up pandas performance, essentially comparing vectorization to apply and iterrows. While the result remains astonishing, I need to find a way to load run performances of mean/std for each method directly into a df, and in stead of having to set up the values in the df manually.</p>
  <p>Tried to add '-o' after the %%timeit, but that does not quite appear to solve my challenge from level of detail perspective.</p>
  <p>This is the result from running %%timeit:</p>
  <pre><code>2.56 ms ± 72.4 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
  </code></pre>
  <p>This is the result from running %%timeit -o:</p>
  <pre><code>&lt;TimeitResult : 2.56 ms ± 72.4 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)&gt;
  </code></pre>
  <p>Subsequently, I'd like to load the mean and std values directly into the below df:</p>
  <pre><code>results = pd.DataFrame(
  [['Loop', mean_std_values_from_loop_timeit],
  ['Apply', mean_std_values_from_apply_timeit],
  ['Vectorized', mean_std_values_from_vectorized_timeit]],
  columns=['Type', 'Mean'],
  )
  
  results.set_index('Type')['Mean'].plot(kind='bar', title='Time to run Reward Calc')
  </code></pre>
  <p>I did import numpy, pandas....and, of course, matplotlib.pyplot. So this is not a problem of visualization, but extracting details from %%timeit. Any support appreciated...;o)</p>