First of all, I would like to apologize if this problem is trivial for you guys since I am very new to ArcPy and Python in general. I want write a script to read attribute table from a feature class and merge some data from a csv file into the table. Right now, I am just playing around with the table just to make sure everything is fine, so here is the code:
fc = 'ShuttleStop_nextbus' cursor = arcpy.SearchCursor(fc, '*', """ 'NextBus_nu' = '27837' """) for row in cursor: print row
(I have set arcpy.env.workspace to current workspace)
So I inspected the content of the feature class with
It return 13, which is exactly the number of fields. Then I read all the fields with
fields = arcpy.ListFields("ShuttleStop_nextbus") for f in fields: print f
Then, it outputs something like this:
<geoprocessing describe field object object at 0x24546980> <geoprocessing describe field object object at 0x24546DE8> <geoprocessing describe field object object at 0x24546E78> ......... .........
Turns out the fields are actually of type Describe.
My question: Is there anyway that I can query the table if all the above occurs? I still want to use the "where" clause of SearchCursor(). Let me know if I need to clarify something. Thank you.