title: jupyter-notebook: print fine table in a cycle
body: <p>When I input a name of dataframe in jupyter-notebook, it prints a pretty table:</p>
  
  <pre><code>fail_data
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pPEaS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pPEaS.png" alt="enter image description here"></a></p>
  
  <p>It can even recognize the TeX notation.</p>
  
  <p>But when I need to print the data in the cycle, the output looks not so good:</p>
  
  <pre><code>fail_data_gr = fail_data.groupby('test_name')
  for k, v in fail_data_gr:
      print(v)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/76iW6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/76iW6.png" alt="enter image description here"></a> </p>
  
  <p>How to make this output looking like the first one?</p>