Insert NULL value in Arcgis table with python

المشرف العام

Administrator
طاقم الإدارة
I want to insert python tuples into an arcgis table. As you can see below pylist has some empty values (' ') which is basically 'String' type. These should be inserted as NULL in arcgis table field. The field has type Long. One way is to replace all (' ') values to 0 but that is not same as NULL.

I got considerable help from my previous post to perform typecasting . Check fields data type before insertion to table

But i am stuck with inserting this NULL value in the table.

Scenario:

python list to be inserted in existing field 'L'

pylist = [(1),(''), (2), ('')] table:



PS: i m surprised there is no tag for 'NULL' and 'datatypes'



أكثر...
 
أعلى