Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from dbfread import DBF
- dbf_file = "/Directory/of/this/file.dbf"
- table = DBF(dbf_file, load = True)
- def dbf_func(value):
- '''
- Lines of Code that will look this value up in the rows
- in the dbf file, and returns a value from another column
- '''
- return column_value
- dbf_func(value)
- list of dbf's:
- 20170901.dbf
- 20170908.dbf
- 20170915.dbf
- 20170922.dbf
- if date = 9/23/17, then load 20170922.dbf
- if date = 9/14/17, then load 20170915.dbf
- if date = 9/09/17, then load 20170915.dbf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement