AnsweredAssumed Answered

Python expressions in field calculator

Question asked by HelenMapit on Sep 19, 2019
Latest reply on Sep 19, 2019 by HelenMapit

Hi all, 

 

I'm transitioning from ArcMap to ArcGIS Pro - no experience of Python but would like to learn.

I'm trying to run a very simple string function to remove four digits at the end of text field. In ArcMap VB Script I would do the following:

Left([FieldName],Len([FieldName])-4)

 

I can't see how to do the same in Python.

 

There seem to be relatively few examples here: 

Calculate Field examples—Help | ArcGIS Desktop 

 

and the link to the build in functions of Python returns a 404 error.

 

Is there a good resource that sets out the functions and arguments for Python in ArcGIS?  I have googled but can't find what I'm looking for!

 

Thanks in advance for any help, 

 

Helen

Outcomes