title: how to print out dataframe in python
body: <p>normally using jupyternotes I can import pandas make my dataframe and export to csv. </p>
  
  <p>I'm trying to automate this reoccurring query with a python script. I can't figure out how to test my script because I cant print out the df to screen. In jupyternotes I just need to type out the df name in any cell and it will display.</p>
  
  <p>here what I'm doing</p>
  
  <pre><code>import pandas as pd
  def run_agg_query(db):
      df1 = pd.read_sql( "select some query",conn)
      display(df1)
  </code></pre>
  
  <p>but I cant get the df to display.</p>