Way to convert dbf to csv in python?
问题 I have a folder with a bunch of dbf files I would like to convert to csv. I have tried using a code to just change the extension from .dbf to .csv, and these files open fine when I use Excel, but when I open them in pandas they look like this: s\t� 0 NaN 1 1 176 1.58400000000e+005-3.385... This is not what I want, and those characters don't appear in the real file. How should I read in the dbf file correctly? 回答1: Looking online, there's a few options: https://gist.github.com/ryanhill29