Timeline for How to avoid default_value in field with ArcPy cursor (e.g. row[i]=None)
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 17, 2022 at 17:07 | answer | added | bixb0012 | timeline score: 0 | |
Nov 16, 2021 at 7:16 | comment | added | Александр Коробкин |
No, I write row = None but as a result there are "1" in cells not "Null". It's because default value for the field =1
|
|
Nov 5, 2021 at 13:25 | comment | added | Bera |
You want to replace 1 with None? Try row = [None if val==1 else val for val in row]
|
|
Nov 5, 2021 at 13:17 | comment | added | Александр Коробкин | Only mdb and gdb. Field with assigned default value = 1. I want Null, but the script set default value, unfortunatelly | |
Nov 5, 2021 at 12:25 | history | edited | Vince | CC BY-SA 4.0 |
naming
|
Nov 5, 2021 at 12:02 | comment | added | Vince | Your code assigns NULL values where zeros are present, not ones. Of course, if the dataset is a shapefile, it doesn't support NULLs. | |
Nov 5, 2021 at 11:58 | history | edited | Vince | CC BY-SA 4.0 |
English usage
|
Nov 5, 2021 at 11:47 | history | asked | Александр Коробкин | CC BY-SA 4.0 |