title: Jupyter: pandas pretty describe function wrapped in if statement not possible?
body: <p>I found this useful pandas describe function I can use like this:
  <a href="https://i.stack.imgur.com/DUecE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DUecE.png" alt="pandas describe function working"></a></p>
  
  <p>My code is now cluttered with meta information and I wanted to introduce a debug version with debug meta information and one that just trains my NN. Just via a boolean switch. But I found some commands like pandas describe will not produce an output when wrapped in an if statement
  <a href="https://i.stack.imgur.com/dCmxp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dCmxp.png" alt="pandas describe function wrapped in if statement not working"></a></p>
  
  <p>The only workaround I found so far is wrapping it in a print function. It results in an ugly but correct output
  <a href="https://i.stack.imgur.com/WL8Z6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WL8Z6.png" alt="working but ugly workaround"></a></p>
  
  <p>Why is that or what am I doing wrong?</p>