Copy a column changing the name in Dbf
问题 i have a dbf file with this scruture: __SAMPLEID 1 2 3 4 I want to copy the values but change na column name, the result i expect is something like that: __SAMPLEID ID 1 1 2 2 3 3 4 4 i try to use dbfpy or db libs on python, its possible to do that? 回答1: Using my dbf library: To rename a field in an existing dbf: import dbf with dbf.Table('file-name-here.dbf') as table: table.rename_field('old_name', 'new_name') To copy the table, giving a new name to certain fields: import dbf old_table =