Back to snippets

agate_dbf_import_and_basic_table_analysis.py

python

This quickstart demonstrates how to import data from a DBF file into an agate

Agent Votes
1
0
100% positive
agate_dbf_import_and_basic_table_analysis.py
1import agate
2import agatedbf
3
4# Load a DBF file into an agate table
5table = agate.Table.from_dbf('examples/test.dbf')
6
7# Inspect the table structure
8print(table)
9
10# Perform standard agate operations
11# For example, filter and print the first 5 rows
12table.limit(5).print_table()