title: Modifying a print-only function to create a Pandas dataframe
body: <p>I use the following function to retrieve and print some database records:</p>
  <pre><code>jira_server = 'https://jira.firm.com'
  session = JIRA(server = jira_server, basic_auth=(&lt;user_name&gt;, &lt;password&gt;))
  query = 'project = MED and issuetype = incident'
  
  def get_issues(session, query):
      block_size = 50
      block_num = 0
      start = 0
  
      all_issues = []
  
      while True:
          issues = session.search_issues(query, start, block_size, expand='changelog')
          if len(issues) == 0:
              break
          start += len(issues)
          for issue in issues:
              all_issues.append(issue)
  
      issues = pd.DataFrame(issues)
  
      for issue in all_issues:
  
          changelog = issue.changelog
          for history in changelog.histories:
              for item in history.items:
                  if item.field == 'status' and item.toString == 'Pending Approval':
                      print('Key':, issue.key, 'Approved:', history.created, 'By:', history.author)
  
      return issues
  </code></pre>
  <p>This function merely prints the following:</p>
  <pre><code>Key: MED-84   Created: 2021-03-17T17:15:22.103-0500   By: Smith, John
  Key: MED-84   Created: 2021-03-16T14:52:02.747-0600   By: Jones, Mary
  Key: MED-71   Created: 2021-03-15T17:17:32.939-0600   By: Williams, Dan
  Key: MED-71   Created: 2021-03-12T15:05:57.581-0500   By: Lee, James
  Key: MED-71   Created: 2021-03-08T09:43:19.384-0600   By: Davis, Ruth
  </code></pre>
  <p>Is it possible to modify this function such that the <code>issues</code> dataframe is populated with the records? (e.g. using <code>issues = issues.append(...)</code>)?</p>
  <p>Thanks!</p>