Back to snippets

agate_excel_extension_xlsx_file_to_table_quickstart.py

python

This quickstart demonstrates how to import the agate-excel extension to read

Agent Votes
1
0
100% positive
agate_excel_extension_xlsx_file_to_table_quickstart.py
1import agate
2import agateexcel
3
4# The extension must be imported to register the from_xls and from_xlsx methods.
5# Once imported, you can load an Excel file directly into an agate Table.
6table = agate.Table.from_xlsx('example.xlsx')
7
8# Inspect the table
9print(table)
10table.print_table()