Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. from dbfread import DBF
  2. dbf_file = "/Directory/of/this/file.dbf"
  3. table = DBF(dbf_file, load = True)
  4.  
  5. def dbf_func(value):
  6. '''
  7. Lines of Code that will look this value up in the rows
  8. in the dbf file, and returns a value from another column
  9. '''
  10. return column_value
  11.  
  12. dbf_func(value)
  13.  
  14. list of dbf's:
  15. 20170901.dbf
  16. 20170908.dbf
  17. 20170915.dbf
  18. 20170922.dbf
  19.  
  20. if date = 9/23/17, then load 20170922.dbf
  21. if date = 9/14/17, then load 20170915.dbf
  22. if date = 9/09/17, then load 20170915.dbf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement