Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def print_results(results):
- print()
- print('Profile Name: %s' % results.get('profileInfo').get('profileName'))
- print()
- # Print header.
- output = []
- for header in results.get('columnHeaders'):
- output.append('%30s' % header.get('name'))
- print(''.join(output))
- # Print data table.
- if results.get('rows', []):
- for row in results.get('rows'):
- output = []
- for cell in row:
- output.append('%30s' % cell)
- print(''.join(output))
- else:
- print('No Rows Found')
- DataFrame.to_excel("Output_File.xlsx")
Add Comment
Please, Sign In to add comment