i' ve got al lot of csv file and would like to convert them to a dbf file. I found the code from Ethan Furman (see below) It works really good - thanks a lot - but my csv files have as the delimiter a semicolon. So with the code python puts all my data into one column, but I've got 5 columns. How can I change the delimiter?
here the link: Convert .csv file into .dbf using Python?
especially:
Using the dbf package you can get a basic csv file with code similar to this:
import dbf some_table = dbf.from_csv(csvfile='/path/to/file.csv', to_disk=True)
This will create table with the same name and either Character or Memo fields and field names of f0, f1, f2, etc.
For a different filename use the
filename
parameter, and if you know your field names you can also use thefield_names
parameter.some_table = dbf.from_csv(csvfile='data.csv', filename='mytable', field_names='name age birth'.split())
Rather basic documentation is available here.