Skip to content
Advertisement

Tag: dbf

Struggles with converting a DBF file to Pandas DataFrame

I’m attempting to work with the Canadian radio station DBF files made public here: https://sms-sgs.ic.gc.ca/eic/site/sms-sgs-prod.nsf/eng/h_00015.html I’d like to read specifically the fmstatio.dbf file into a Pandas DataFrame. I’ve tried the two commonly recommended DBF packages in Python. When using simpledbf (https://pypi.org/project/simpledbf/), I only get the column names when using the dbf.to_dataframe() function. I also tried dbf on pypi (https://pypi.org/project/dbf/). I’m

How to merge a list of dbf tables into one in Python?

I want to merge a lot of dbf tables in my “Output” folder, into one table. Here is my code, but it doesn’t work (error showed below).: Traceback (most recent call last): File “C:UserscaobaijingDesktopBettyPythonMergeTables.py”, line 7, in arcpy.Merge_management (listTable, “C:UserscaobaijingDesktopBettyOutputppt.dbf”) File “C:Program Files (x86)ArcGISDesktop10.1arcpyarcpymanagement.py”, line 3762, in Merge raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732:

Advertisement