I'm trying to convert text to numeric, but am unable to in ArcGIS Pro.
Is there a Python function?
int(!FieldName!) but I think NULL values are messing it up?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
You need to replace the Null values with 0s using the field calculator. In python, None (NULL) has a data type of NoneType, which is not the same as a string. This has been confirmed by other threads: https://community.esri.com/thread/37019
And I just confirmed that mattwatt's field calculation in python successfully converts Nulls to 0s. See his comment below.