How can I convert a dbf to numpy array without using arcpy?
I tried using the dbf library, but I didn't figure out how to select specific columns from my dbf to build the adequate numpy array.
Here is the script I want to reproduce without using arcpy:
arr = arcpy.da.TableToNumPyArray(inTable ,("PROVINCE","ZONE_CODE","MEAN", "Datetime","Time"))
arr = sorted(arr,key=lambda x:datetime.strptime(str(x[3]),"%d/%m/%Y %H:%M:%S"))
Using this command lines, I am able to chose the colums I want and then sort them chronologically (that's the aim of my program).
Here is the one I made with the dbf lib:
arr = dbf.Table(inTable)
arr.open()
arr = sorted(arr,key=lambda x:datetime.strptime(str(x[7]),"%d/%m/%Y %H:%M:%S"))
I don't know how to select the columns I want, and it just lasts an eternity to compile and sort.
Thank you for your help.