title: Extending Googles HelloAnalytics Python script to pull out the data in a csv
body: <p>Looking for help trying to place the output of this HelloAnalytics Python example into a data frame so that I can export it to CSV in a tabular format.</p>
  <p>Here's the function that calls the output and here's the <a href="https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/installed-py" rel="nofollow noreferrer">full code</a> from Google:</p>
  <pre><code>def main():
      analytics = initialize_analyticsreporting()
      response = get_report(analytics)
      print_response(response)
  
  if __name__ == '__main__':
      main().
  </code></pre>
  <p>Thanks!</p>