table.to_csv('filename.csv')
table.to_json('filename.json')
table.to_json('filename.json', newline=True)
Use the agate-sql extension.
import agatesql
table.to_sql('postgresql:///database', 'output_table')
table.to_csv('filename.csv')
table.to_json('filename.json')
table.to_json('filename.json', newline=True)
Use the agate-sql extension.
import agatesql
table.to_sql('postgresql:///database', 'output_table')