Skip to content

Instantly share code, notes, and snippets.

@hansonkd
Created January 17, 2017 01:33
Show Gist options
  • Save hansonkd/c82e61bd0093cd800d83055655bb4840 to your computer and use it in GitHub Desktop.
Save hansonkd/c82e61bd0093cd800d83055655bb4840 to your computer and use it in GitHub Desktop.
with open('file_output.csv', 'w') as csvfile:
writer = csv.DictWriter(csvfile, fieldnames=['Label', 'Issue Date'])
for security in flat_securities:
writer.write_row({'Label': security.label, 'Issue Date': security.issue_date})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment