How to copy entire fields into a python list

المشرف العام

Administrator
طاقم الإدارة
i am trying to find out a way to copy entire fields(columns) in a feature class attribute table as lists inside a master list (python).

to illustrate it. consider the table below.



so the list should look something like this.

talukas = [[26190, 26191, 26192, 26193, 26194, 26195, ...], [Tharad, Vadgam, Vav, Amod, Ankleshwar, Bharuch, ...], [None, None, None, None, None, Ahmedabad Ciy, ...] ] ]I was trying this

features = [[row.getValue(f) for f in fields] for row in arcpy.SearchCursor(fc)]but this gives the entire row values in sub-list and not column value.



أكثر...
 
أعلى