title: Do dataframe has to be the last command in pandas to show output?
body: <p>As I have to show dataframe for the output and do file handling and error logging.
  So I created the .ipynb file in pycharm and did all mentioned above? But I am able to see dataframe in my out window as I have mentioned dataframe in my one of the methods(not the last one).</p>
  
  <p><strong>Earlier it was showing me dataframe when my program was simple and dataframe was last command.</strong></p>
  
  <p>Can anyone tell me what will be best way to deal with these type of situations.
  I tried running in Jupyter Notebook also that whole program but no luck.</p>